mirror of
https://github.com/tc39/test262.git
synced 2025-07-24 14:35:30 +02:00
Update context-non-object-with-promise.js (#790)
Promise constructor accepts only one executor function
This commit is contained in:
parent
4fd91d8904
commit
84e6ba81d0
@ -14,7 +14,7 @@ info: >
|
||||
features: [Symbol]
|
||||
---*/
|
||||
|
||||
var promise = new Promise(function(){}, function(){});
|
||||
var promise = new Promise(function(){});
|
||||
|
||||
promise.constructor = undefined;
|
||||
assert.throws(TypeError, function() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user