Updates:
Status: WorkingAsIntended
Comment #3 on issue 1196 by [email protected]: Sputnik: Delete of
global variable returns false
http://code.google.com/p/v8/issues/detail?id=1196
It is correct that "delete foo" evaluates to false when foo has been
declared as a variable using "var foo".
The variable binding introduced using "var" is not deletable (unless the
code containing the "var" is eval-code, then they can be deleted, q.v. ES5
section 10.5, steps 2 and 8).
There do seem to be a bug in the sputnik test, introduced in the latest
revision of the file. The "var" keywords didn't use to be there, and it
does change the behavior being tested.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev