Commit 901cf165 authored by paulirish's avatar paulirish Committed by Commit bot

DevTools: setImmediate polyfill should handle arguments

BUG=678722

Review-Url: https://codereview.chromium.org/2615083002
Cr-Commit-Position: refs/heads/master@{#442049}
parent db2df0ad
......@@ -1367,7 +1367,8 @@ function suppressUnused(value) {
* @return {number}
*/
self.setImmediate = function(callback) {
Promise.resolve().then(callback);
const args = [...arguments].slice(1);
Promise.resolve().then(() => callback(...args));
return 0;
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment