tor-browser

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

11.1.5-1gs-strict.js (524B)


      1 // |reftest| error:SyntaxError
      2 'use strict';
      3 // Copyright (c) 2012 Ecma International.  All rights reserved.
      4 // This code is governed by the BSD license found in the LICENSE file.
      5 
      6 /*---
      7 es5id: 11.1.5-1gs
      8 description: >
      9    Strict Mode - SyntaxError is thrown when 'eval' occurs as the
     10    Identifier in a PropertySetParameterList of a PropertyAssignment
     11    that is contained in strict code
     12 negative:
     13  phase: parse
     14  type: SyntaxError
     15 flags: [onlyStrict]
     16 ---*/
     17 
     18 $DONOTEVALUATE();
     19 
     20 var obj = { set _11_1_5_1_fun(eval) {}};