Rationale for const not throwing in sloppy mode?
# Allen Wirfs-Brock (10 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 aconst
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
Given that
const
is a new feature – shouldn’t an exception be thrown in non-strict mode if aconst
variable is being changed?