Debian Codegraph @

js/src/tests/test262/language/statements/with/strict-fn-decl-nested-2.js

raw
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 }