Rationale for const not throwing in sloppy mode?

# Axel Rauschmayer (9 years ago)

Given that const is a new feature – shouldn’t an exception be thrown in non-strict mode if a const variable is being changed?

# Allen Wirfs-Brock (9 years ago)

On Nov 25, 2014, at 10:07 PM, Axel Rauschmayer wrote:

Given that const is a new feature – shouldn’t an exception be thrown in non-strict mode if a const variable is being changed?

yes it should see tc39/tc39-notes/blob/master/es6/2014-11/nov-18.md#43-assignment-to-a-const-static-error