Enhance delay with toNumber to use binary and octal strings.

This commit is contained in:
Xotic750
2015-11-03 16:53:43 +01:00
committed by John-David Dalton
parent 3d9fd1d374
commit ea71539b7a

View File

@@ -8285,7 +8285,7 @@
* // => logs 'later' after one second
*/
var delay = rest(function(func, wait, args) {
return baseDelay(func, wait, args);
return baseDelay(func, toNumber(wait), args);
});
/**