tor-browser

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

name-eval-strict-strict.js (449B)


      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: 13.1-12-s
      8 description: >
      9    StrictMode - SyntaxError is thrown if 'eval' occurs as the
     10    Identifier of a FunctionExpression in strict mode
     11 negative:
     12  phase: parse
     13  type: SyntaxError
     14 flags: [onlyStrict]
     15 ---*/
     16 
     17 $DONOTEVALUATE();
     18 
     19 (function eval() {});