blob: a48a2612390e4deb1345141ad82f73112e2f10b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Copyright (C) 2015 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 13.6.3.7_S5.a.i
description: >
const: invalid assignment in next expression
---*/
assert.throws(TypeError, function() {
for (const i = 0; i < 1; i++) {}
});
reportCompare(0, 0);
|