Status: New
Owner: ----
New issue 1437 by [email protected]: More global leakage
http://code.google.com/p/v8/issues/detail?id=1437
The attachment demonstrates that Object.prototype.valueOf, when called as a
function, returns the global object rather than throwing a TypeError. Since
the global leakage cases covered by issue 981 and issue 1321 are classified
as fixed, I'm filing this case as a new bug. Please tag with ES5.
I also built and ran v8 bleeding edge r8209 and verified that this bug
isn't fixed there either:
V8 version 3.1.6 (candidate) [console: dumb]
d8> var v = {}.valueOf
d8> v()
[object global]
Attachments:
implicit-this.html 220 bytes
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev