Skip to content
Snippets Groups Projects
Commit 84e6ba81 authored by Sathya's avatar Sathya Committed by Tom Care
Browse files

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

Promise constructor accepts only one executor function
parent 4fd91d89
No related branches found
No related tags found
No related merge requests found
......@@ -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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment