Status: Accepted
Owner: ----
Labels: Type-Bug Priority-Low ES5
New issue 795 by [email protected]: Function.prototype.bind doesn't
apply to RegExp objects.
http://code.google.com/p/v8/issues/detail?id=795
Function.prototype.bind.call(/x/,{}); // Throws TypeError, requires
function.
RegExp objects are callable (q.v. IsCallable) in V8 (visibly since typeof
/x/ == 'function'). As such, Function.prototype.bind should apply to them,
but it only allows actual functions.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev