tor-browser

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

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


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