mirror of
https://github.com/tc39/test262.git
synced 2025-06-02 13:10:31 +02:00
Add missing mandatory Promise.{all,race} argument
This commit is contained in:
parent
0475c127c4
commit
fc6de76a0d
@ -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 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user