tor-browser

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

11.13.1-3-s-strict.js (570B)


      1 'use strict';
      2 // Copyright (c) 2012 Ecma International.  All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 
      5 /*---
      6 es5id: 11.13.1-3-s
      7 description: >
      8    Strict Mode - TypeError is thrown if The LeftHandSide is a
      9    reference to a non-existent property of an object whose
     10    [[Extensible]] internal property has the value false under strict
     11    mode
     12 flags: [onlyStrict]
     13 ---*/
     14 
     15        var obj = {};
     16        Object.preventExtensions(obj);
     17 assert.throws(TypeError, function() {
     18            obj.len = 10;
     19 });
     20 
     21 reportCompare(0, 0);