tor-browser

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

13.0-14-s.js (607B)


      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 info: |
      6    Refer 13; 
      7    The production FunctionBody : SourceElementsopt is evaluated as follows:
      8 es5id: 13.0-14-s
      9 description: >
     10    Strict Mode - SourceElements is evaluated as strict mode code when
     11    the function body of a Function constructor contains a Strict
     12    Directive
     13 flags: [noStrict]
     14 ---*/
     15 
     16 assert.throws(SyntaxError, function() {
     17    var _13_0_14_fun = new Function(" ", "'use strict'; eval = 42; ");
     18    _13_0_14_fun();
     19 });
     20 
     21 reportCompare(0, 0);