Debian Codegraph @

js/src/tests/test262/language/statements/with/strict-fn-expr-strict.js

raw
1 // |reftest| error:SyntaxError
2 'use strict';
3 // Copyright (c) 2012 Ecma International. All rights reserved.
4 // This code is governed by the BSD license found in the LICENSE file.
5
6 /*---
7 es5id: 12.10.1-7-s
8 description: >
9 with statement in strict mode throws SyntaxError (function expression)
10 negative:
11 phase: parse
12 type: SyntaxError
13 flags: [onlyStrict]
14 ---*/
15
16 $DONOTEVALUATE();
17
18 var f = function () {
19 var o = {};
20 with (o) {};
21 };