tor-browser

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

strict-fn-decl-nested-2.js (463B)


      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 /*---
      6 es5id: 12.10.1-3-s
      7 description: >
      8  with statement in strict mode throws SyntaxError (nested strict function)
      9 negative:
     10  phase: parse
     11  type: SyntaxError
     12 flags: [noStrict]
     13 ---*/
     14 
     15 $DONOTEVALUATE();
     16 
     17 function foo() {
     18  function f() {
     19    'use strict';
     20    var o = {};
     21    with (o) {};
     22  }
     23 }