GNOME Bugzilla – Bug 770111
Format: be future proof against fixes in SpiderMonkey
Last modified: 2016-08-19 18:42:36 UTC
Modern JS engines (in Firefox and Chrome, as well as node) pass undefined, not '', to the replaced function for groups that are not matched. Be future proof against changes that might go unnoticed when porting to SpiderMonkey 31/38/45/whatever that will be, and also if people extract this code and use it against different engines. (At least SM 34 has the right behavior, not sure about 31)
Created attachment 333588 [details] [review] Format: be future proof against fixes in SpiderMonkey
Review of attachment 333588 [details] [review]: Looks good to me, thanks.
Attachment 333588 [details] pushed as 2cf42c5 - Format: be future proof against fixes in SpiderMonkey