Debian Codegraph @

js/src/tests/test262/language/statements/with/strict-fn-decl.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-1-s
7 description: with statement in strict mode throws SyntaxError (strict function)
8 flags: [noStrict]
9 negative:
10 phase: parse
11 type: SyntaxError
12 ---*/
13
14 $DONOTEVALUATE();
15
16 function f() {
17 'use strict';
18 var o = {};
19 with (o) {};
20 }