Comment #5 on issue 617 by [email protected]: Function.prototype.apply does not work for RegExps
http://code.google.com/p/v8/issues/detail?id=617

The general problem is that (typeof /x/) is "function" (for compatibility with JSC). As such, it should be usable everywhere a callable object is. However, it's only supported in simple function calls.

Also, for compatibility with JSC, a call should work as the default exec function, not the current exec function on the RegExp object, which might have been modified, and with the regexp as receiver.

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

Reply via email to