Update task.js

This commit is contained in:
Namhyeon Go 2021-06-23 14:29:54 +09:00 committed by GitHub
parent 364e13bb18
commit fba7e00b68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,7 +147,7 @@ exports.setTimeout = function() {
f = arguments[0];
delay = args[1];
params = args.slice(2);
} else if (arguments.length == 2) {
} else if (args.length == 2) {
f = args[0];
delay = args[1];
}
@ -164,11 +164,11 @@ exports.setInterval = function() {
var params = [];
var args = arguments;
if (arguments.length > 2) {
if (args.length > 2) {
f = args[0];
delay = args[1];
params = args.slice(2);
} else if (arguments.length == 2) {
} else if (args.length == 2) {
f = args[0];
delay = args[1];
}