DescriptionMIPS: harmony-scoping: make assignment to 'const' a late error.
Port 6ac4de87a8b01500b066a3e401e921d2d84b42db
Original commit message:
Per TC39 Nov 2014 decision.
This patch also changes behavior for "legacy const": assignments to sloppy const in strict mode is now also a type error. This fixes v8:2243 and also brings us in compliance with other engines re assignment to function names (see updated webkit test), but might have bigger implications.
That change can easily be reverted by changing Variable::IsSignallingAssignmentToConst.
BUG=v8:3713, v8:2243
LOG=N
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|