Debian Codegraph @

js/src/tests/test262/language/statements/const/syntax/const-invalid-assignment-next-expression-for.js

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