Skip to content
Snippets Groups Projects
Unverified Commit 87202773 authored by Rick Waldron's avatar Rick Waldron Committed by GitHub
Browse files

Merge pull request #1938 from adrianheine/promise

Add missing mandatory Promise.{all,race} argument
parents c4cca0b7 fc6de76a
Branches
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ class SubPromise extends Promise { ...@@ -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.constructor, SubPromise);
assert.sameValue(instance instanceof SubPromise, true); assert.sameValue(instance instanceof SubPromise, true);
......
...@@ -28,7 +28,7 @@ class SubPromise extends Promise { ...@@ -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.constructor, SubPromise);
assert.sameValue(instance instanceof SubPromise, true); assert.sameValue(instance instanceof SubPromise, true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment