summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/language/statements/with/strict-fn-method-strict.js
blob: 2dc0dda35dab44ca4e3f8f12c9aff64cdb911fd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// |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-14-s
description: >
  Strict Mode - SyntaxError is thrown when the getter of a literal object
  utilizes WithStatement
negative:
  phase: parse
  type: SyntaxError
flags: [onlyStrict]
---*/

$DONOTEVALUATE();

var obj = { get(a) { with(a){} } };