summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/annexB/language/statements/for-in/strict-initializer-strict.js
blob: afc84b3489c669915c2899517a009f0b37fc65fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// |reftest| error:SyntaxError
'use strict';
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-initializers-in-forin-statement-heads
description: >
    for-in initializers in strict mode are prohibited
negative:
  phase: parse
  type: SyntaxError
flags: [onlyStrict]
---*/

$DONOTEVALUATE();

for (var a = 0 in {});