Comment #7 on issue 4285 by [email protected]: Sloppy function in block
https://code.google.com/p/v8/issues/detail?id=4285#c7
The following revision refers to this bug:
https://chromium.googlesource.com/v8/v8.git/+/1ebf0d7c5d86853ccb5c97c7b4486d644f0e0334
commit 1ebf0d7c5d86853ccb5c97c7b4486d644f0e0334
Author: littledan <[email protected]>
Date: Tue Aug 11 23:59:47 2015
Split function block scoping into a separate flag
In an initial attempt to implement sloppy mode lexical bindings,
functions were made lexically scoped in sloppy mode. However, the
ES2015 spec says that they need an additional hoisted var binding,
and further, it's not clear when we'll implement that behavior
or whether it's web-compatible.
This patch splits off function block scoping into a new, separate
flag called --harmony_sloppy_function. This change will enable the
possibility of testing and shipping this feature separately from
other block scoping-related features which don't have the same risks.
BUG=v8:4285
R=adamk
LOG=N
Review URL: https://codereview.chromium.org/1282093002
Cr-Commit-Position: refs/heads/master@{#30122}
[modify]
http://crrev.com/1ebf0d7c5d86853ccb5c97c7b4486d644f0e0334/src/bootstrapper.cc
[modify]
http://crrev.com/1ebf0d7c5d86853ccb5c97c7b4486d644f0e0334/src/flag-definitions.h
[modify]
http://crrev.com/1ebf0d7c5d86853ccb5c97c7b4486d644f0e0334/src/parser.cc
[modify]
http://crrev.com/1ebf0d7c5d86853ccb5c97c7b4486d644f0e0334/src/preparser.h
[modify]
http://crrev.com/1ebf0d7c5d86853ccb5c97c7b4486d644f0e0334/test/mjsunit/harmony/block-conflicts-sloppy.js
[modify]
http://crrev.com/1ebf0d7c5d86853ccb5c97c7b4486d644f0e0334/test/mjsunit/harmony/block-let-semantics-sloppy.js
[modify]
http://crrev.com/1ebf0d7c5d86853ccb5c97c7b4486d644f0e0334/test/mjsunit/harmony/block-scope-class.js
[modify]
http://crrev.com/1ebf0d7c5d86853ccb5c97c7b4486d644f0e0334/test/mjsunit/harmony/block-scoping-sloppy.js
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.