tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

resolve-function-extensible.js (562B)


      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.3.2
      6 description: The [[Extensible]] slot of Promise Resolve 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 resolveFunction;
     14 new Promise(function(resolve, reject) {
     15  resolveFunction = resolve;
     16 });
     17 
     18 assert(Object.isExtensible(resolveFunction));
     19 
     20 reportCompare(0, 0);