executor-function-extensible.js (641B)
1 // Copyright (C) 2015 André Bargull. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 es6id: 25.4.1.5.1 6 description: The [[Extensible]] slot of GetCapabilitiesExecutor functions 7 info: | 8 17 ECMAScript Standard Built-in Objects: 9 Unless specified otherwise, the [[Extensible]] internal slot 10 of a built-in object initially has the value true. 11 ---*/ 12 13 var executorFunction; 14 15 function NotPromise(executor) { 16 executorFunction = executor; 17 executor(function() {}, function() {}); 18 } 19 Promise.resolve.call(NotPromise); 20 21 assert(Object.isExtensible(executorFunction)); 22 23 reportCompare(0, 0);