Debian Codegraph @

js/src/tests/test262/language/statements/with/12.10.1-12-s.js

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