tor-browser

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

10.5-1-s-strict.js (388B)


      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: 10.5-1-s
      7 description: Strict Mode - arguments object is immutable
      8 flags: [onlyStrict]
      9 ---*/
     10 
     11 assert.throws(SyntaxError, function() {
     12    (function fun() {
     13        eval("arguments = 10");
     14    })(30);
     15 });
     16 
     17 reportCompare(0, 0);