tor-browser

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

13.2-3-s.js (470B)


      1 // Copyright (c) 2012 Ecma International.  All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 es5id: 13.2-3-s
      6 description: >
      7    StrictMode - Writing or reading from a property named 'arguments'
      8    of function objects is allowed under both strict and normal modes.
      9 ---*/
     10 
     11 var foo = function () {
     12    this.arguments = 12;
     13 }
     14 var obj = new foo();
     15 
     16 assert.sameValue(obj.arguments, 12, 'obj.arguments');
     17 
     18 reportCompare(0, 0);