DescriptionStop emitting kSloppyLexical errors when --harmony-sloppy-let is enabled
This changes the error message for code like:
if (false) let x;
from "Block-scoped declarations (let, const, function, class) not yet supported outside strict mode"
to "Unexpected identifier" (pointing at |x|).
Committed: https://crrev.com/bdf5b39f06ae7af0b7c0972b050d603ed919974a
Cr-Commit-Position: refs/heads/master@{#30834}
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|