tor-browser

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

frozen-object-contains-symbol-properties-non-strict.js (507B)


      1 // Copyright (C) 2013 the V8 project authors. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 /*---
      4 es6id: 19.1.2.5
      5 description: >
      6    Frozen object contains symbol properties.
      7 flags: [noStrict]
      8 features: [Symbol]
      9 ---*/
     10 var sym = Symbol();
     11 var obj = {};
     12 obj[sym] = 1;
     13 Object.freeze(obj);
     14 obj[sym] = 2;
     15 assert.sameValue(obj[sym], 1, "The value of `obj[sym]` is `1`");
     16 assert.sameValue(delete obj[sym], false, "`delete obj[sym]` is `false`");
     17 
     18 reportCompare(0, 0);