2
0

WIP - upgrade to tmthrgd latest code.

This commit is contained in:
Maarten Billemont
2016-03-05 16:57:58 -05:00
parent b4da801bb0
commit f238bb723d
3 changed files with 11 additions and 6 deletions

View File

@@ -195,9 +195,9 @@ window.setImmediate || !function (global) {
};
}
// The worst fallback is setImmediate, although the delay is set to 0
// in reality this should have a ~20ms delay, this is an important part
// of the spec
// The worst fallback is setTimeout, although the delay is set to 0,
// in reality this should have a ~20ms delay as this is an important
// part of the spec
attachTo.setImmediate = (func, ...params) => global.setTimeout(func, 0, ...params);
attachTo.clearImmediate = global.clearTimeout;
@@ -208,4 +208,4 @@ window.setImmediate || !function (global) {
// the arguments
arg || (attachTo.setImmediate = (func, ...params) => global.setTimeout(() => func(...params), 0));
}, 0, true);
}(this);
}(this || window);