Source code
Revision control
Copy as Markdown
Other Tools
// Copyright (C) 2011 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 13.6.4.10_S1.a.i
description: >
const: invalid assignment in Statement body
---*/
assert.throws(TypeError, function() {
for (const x in [1, 2, 3]) { x++ }
});
reportCompare(0, 0);