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