GNOME Bugzilla – Bug 791613
Gecko-specific dialect of String.prototype.replace doesn't work with gjs-1.50.x
Last modified: 2018-02-16 20:01:54 UTC
This doesn't work anymore with gjs-1.50.x: str.replace ('blue', 'red', 'g') We need: str.replace (/blue/g, "red"); See the "Firefox-specific notes" section: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace We missed the deprecation notice because we went from SpiderMonkey 38 in gjs-1.48.x to SpiderMonkey 52 in gjs-1.50.x.
Created attachment 365541 [details] [review] documents, query: Use the standard dialect of String.prototype.replace
Review of attachment 365541 [details] [review]: Looks good, thanks.
Comment on attachment 365541 [details] [review] documents, query: Use the standard dialect of String.prototype.replace Pushed to master and gnome-3-26.
*** Bug 789006 has been marked as a duplicate of this bug. ***