Status: Assigned
Owner: [email protected]
Labels: Type-Bug Priority-Medium
New issue 617 by [email protected]: Function.prototype.apply does not
work for RegExps
http://code.google.com/p/v8/issues/detail?id=617
Regexps can be called directly and via Function.prototype.call, but not via
Function.prototype.apply:
V8 version 2.1.1 (candidate)
var re = /b../
re("abcdefg")
bcd
re.call = Function.prototype.call
function call() { [native code] }
re.call(null, "abcdefg")
bcd
re.apply = Function.prototype.apply
function apply() { [native code] }
re.apply(null, ["abcdefg"])
(shell):1: TypeError: Function.prototype.apply was called on /b../, which
is a function and not a function
re.apply(null, ["abcdefg"])
^
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev