tor-browser

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

decl-lex-deletion.js (1059B)


      1 // Copyright (C) 2016 the V8 project authors. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 /*---
      4 esid: sec-globaldeclarationinstantiation
      5 es6id: 15.1.8
      6 description: Globally-declared lexical bindings cannot be deleted
      7 info: |
      8  [...]
      9  16. For each element d in lexDeclarations do
     10      a. NOTE Lexically declared names are only instantiated here but not
     11         initialized.
     12      b. For each element dn of the BoundNames of d do
     13         i. If IsConstantDeclaration of d is true, then
     14            1. Perform ? envRec.CreateImmutableBinding(dn, true).
     15         ii. Else,
     16             1. Perform ? envRec.CreateMutableBinding(dn, false).
     17  [...]
     18 flags: [noStrict]
     19 ---*/
     20 
     21 let test262let;
     22 
     23 delete test262let;
     24 
     25 // Binding values are asserted by a dedicated test. IdentifierReferences serve
     26 // to ensure that the entries in the environment record persist.
     27 test262let;
     28 
     29 const test262const = null;
     30 
     31 delete test262const;
     32 
     33 test262const;
     34 
     35 class test262class {}
     36 
     37 delete test262class;
     38 
     39 test262class;
     40 
     41 reportCompare(0, 0);