Status: New
Owner: ----

New issue 665 by frantz.gauthier: string conversion doesn't work in String.replace() with global regexp and function as arguments
http://code.google.com/p/v8/issues/detail?id=665

Try to evaluate the following line with trunk or bleeding-edge D8 :

"the answer is x".replace(/x/g, function() {return 42;});

 * Current result : "the answer is [object builtins]"
 * Expected result: "the answer is 42"

Patch in attachment seems to fix this bug.

Attachments:
        FixStringReplaceRegExpWithFunction.diff  979 bytes

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

To unsubscribe from this group, send email to v8-dev+unsubscribegooglegroups.com or reply 
to this email with the words "REMOVE ME" as the subject.

Reply via email to