2015-03-30 18:48:02 +02:00
|
|
|
// Copyright (C) 2011 the V8 project authors. All rights reserved.
|
2015-02-26 20:13:00 +01:00
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
2015-03-30 18:34:10 +02:00
|
|
|
es6id: 13.6.4.10_S1.a.i
|
2015-02-26 20:13:00 +01:00
|
|
|
description: >
|
2015-03-30 18:34:10 +02:00
|
|
|
const: invalid assignment in Statement body
|
2015-02-26 20:13:00 +01:00
|
|
|
---*/
|
|
|
|
|
2015-06-26 20:56:43 +02:00
|
|
|
assert.throws(TypeError, function() {
|
|
|
|
for (const x of [1, 2, 3]) { x++ }
|
|
|
|
});
|