ChakraCore
ChakraCore copied to clipboard
Destructuring assignment target should obey const semantics
The assignment target should obey const semantics.
Test262 bug es6id: 12.14.5.4 features: [const]
const c = 1;
assert.throws(TypeError, function() {
({ a: c } = { a: 2 });
});
We throw ReferenceError here.
Closing this as it is similar to #355