Comment #4 on issue 865 by [email protected]: ES5: typeof for host objects implementing [[Call]] should be function
http://code.google.com/p/v8/issues/detail?id=865

I can't reproduce (typeof regexp == "function") == false in the current development version of Chrome. However, I don't doubt that it has been the case at some point. V8 creates optimized code for expressions like (typeof expr == "string") that can be detected at compile time. The optimization for "function" probably didn't take RegExps into account, because originally they weren't considered functions.


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to