summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/statements/with/strict-fn-expr-strict.js
blob: 8d6036d741b8ba066c642dde356d786a19696ee1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// |reftest| error:SyntaxError
'use strict';
// 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-7-s
description: >
  with statement in strict mode throws SyntaxError (function expression)
negative:
  phase: parse
  type: SyntaxError
flags: [onlyStrict]
---*/

$DONOTEVALUATE();

var f = function () {
   var o = {};
   with (o) {};
};