Skip to content
Snippets Groups Projects
Commit fc6de76a authored by Adrian Heine's avatar Adrian Heine
Browse files

Add missing mandatory Promise.{all,race} argument

parent 0475c127
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ class SubPromise extends Promise {
}
}
var instance = Promise.all.call(SubPromise);
var instance = Promise.all.call(SubPromise, []);
assert.sameValue(instance.constructor, SubPromise);
assert.sameValue(instance instanceof SubPromise, true);
......
......@@ -28,7 +28,7 @@ class SubPromise extends Promise {
}
}
var instance = Promise.race.call(SubPromise);
var instance = Promise.race.call(SubPromise, []);
assert.sameValue(instance.constructor, SubPromise);
assert.sameValue(instance instanceof SubPromise, true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment