Status: Accepted
Owner: ----
Labels: Type-Bug Priority-Low
New issue 251 by christian.plesner.hansen: Regexp methods should fail on
non-regexps
http://code.google.com/p/v8/issues/detail?id=251
When invoking a regexp function we should throw a TypeError if the
[[Class]] of 'this' is not RegExp. For instance
var exec = RegExp.prototype.exec;
exec("foo");
Doesn't currently throw a TypeError (it throws "illegal access").
--
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
-~----------~----~----~----~------~----~------~--~---