Updates:
Status: PendingFurtherInfo
Comment #2 on issue 709 by [email protected]: String.prototype._fn =
function(){ return typeof(this); // 'string' instead 'object' }; // for
Number and Boolean too
http://code.google.com/p/v8/issues/detail?id=709
Much as I love this change in ES5, it only applies to strict mode functions.
V8 doesn't support user-created strict-mode functions yet (and the
anonymous function
here isn't one, even if it did), so the result should be "object".
I am, however, unable to reproduce the error on the dev-builds of Chrome
(and on
bleeding edge of v8):
V8 version 2.2.10 (candidate)
String.prototype.fn_ = function(){ return typeof(this); };
function (){ return typeof(this); }
"ab".fn_()
object
What version of Chrome/V8 is the problem occuring on?
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev