On 2011/09/13 11:24:36, Erik Corry wrote:
What does Safari do?
You're stirring a hornets' nest here... ;-)
Safari does almost the same thing, but it lets consts be overridden by
redeclarations. Example (from const-redecl.js):
const d = 1; const d = 2;
In Safari, this results in a == 2. We decided it would make more sense to
treat
d as read-only after it has been initialized to 1.
From the tests I've added to const-redecl.js, also the test for "k" fails on
Safari (k is 1 rather than undefined); all the others pass.
http://codereview.chromium.org/7811015/
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev