mirror of https://github.com/tc39/test262.git
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…
Reference in New Issue