Update context-non-object-with-promise.js (#790)

Promise constructor accepts only one executor function
This commit is contained in:
Sathya 2016-11-16 00:15:03 +05:30 committed by Tom Care
parent 4fd91d8904
commit 84e6ba81d0
1 changed files with 1 additions and 1 deletions

View File

@ -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() {