tor-browser

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

12.10.1-4-s.js (494B)


      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 es5id: 12.10.1-4-s
      6 description: with statement in strict mode throws SyntaxError (strict Function)
      7 flags: [noStrict]
      8 ---*/
      9 
     10 
     11 assert.throws(SyntaxError, function() {
     12    var f = Function("\
     13                      \'use strict\';  \
     14                      var o = {}; \
     15                      with (o) {};\
     16                    ");
     17 });
     18 
     19 reportCompare(0, 0);