mirror of https://github.com/tc39/test262.git
Merge pull request #1938 from adrianheine/promise
Add missing mandatory Promise.{all,race} argument
This commit is contained in:
commit
87202773fd
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue