tor-browser

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

setter-param-arguments-strict-inside.js (528B)


      1 // |reftest| error:SyntaxError
      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 es5id: 11.1.5-4-s
      6 description: >
      7    Strict Mode - SyntaxError is thrown when 'arguments'  occurs as
      8    the Identifier in a PropertySetParameterList of a
      9    PropertyAssignment  if its FunctionBody is strict code
     10 negative:
     11  phase: parse
     12  type: SyntaxError
     13 flags: [noStrict]
     14 ---*/
     15 
     16 $DONOTEVALUATE();
     17 
     18 void {
     19  set x(arguments) {
     20    "use strict";
     21  }
     22 };