Merge pull request #1938 from adrianheine/promise

Add missing mandatory Promise.{all,race} argument
This commit is contained in:
Rick Waldron 2018-11-08 09:32:25 -05:00 committed by GitHub
commit 87202773fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);