Status: New
Owner: ----
New issue 1829 by [email protected]: Harmony scoping should enable strict
mode
http://code.google.com/p/v8/issues/detail?id=1829
Hello hackers,
I was looking into V8's harmony implementation, and it appears that
currently the harmony flag and strict mode are orthogonal, whereas in
theory harmony builds on ES5.1 strict mode.
So for example:
$ ./d8 --harmony
V8 version 3.7.8 (candidate) [console: readline]
d8> function f() {with ({'foo': 'bar'}) return foo;}
d8> f()
bar
This is invalid scoping according to harmony. By making harmony scoping
orthogonal to strict scoping, you are introducing the possibilities for
more bugs.
Suggestion: in harmony mode, parse everything in strict mode.
Regards,
Andy
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev