From 84e6ba81d0861c7324cb0f4202ce40acd861b1ef Mon Sep 17 00:00:00 2001 From: Sathya Date: Wed, 16 Nov 2016 00:15:03 +0530 Subject: [PATCH] Update context-non-object-with-promise.js (#790) Promise constructor accepts only one executor function --- .../Promise/resolve/context-non-object-with-promise.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/built-ins/Promise/resolve/context-non-object-with-promise.js b/test/built-ins/Promise/resolve/context-non-object-with-promise.js index c41a83229f..5b3c38cc01 100755 --- a/test/built-ins/Promise/resolve/context-non-object-with-promise.js +++ b/test/built-ins/Promise/resolve/context-non-object-with-promise.js @@ -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() {