Status: New
Owner: ----
Labels: Type-Bug Priority-Medium

New issue 248 by [email protected]: Compatibility: Can RegExp be treated  
like a function?
http://code.google.com/p/v8/issues/detail?id=248

I hit this compatibility issue when trying to use some mozilla proxy
autoconfig code.

In Firefox, RegExp is treated like a function, and you can do the
following:

var regex = /foo/;
var result = regex("str");

Which is equivalent to writing:

var regex = /foo/;
var result = regex.exec("str");


This bug can probably be closed as WorkingAsIntended, since internet
explorer 7 doesn't support this syntax either (and it is kinda creepy).

--
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to