Closed
Bug 481738
Opened 16 years ago
Closed 9 years ago
Consider disabling "g" 3rd argument for String.replace
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
DUPLICATE
of bug 1108382
People
(Reporter: dmandelin, Unassigned)
Details
This non-ECMA option ends up costing us about 30ms on SunSpider, because the other browsers do nothing with it, but it makes us do a global replace.
The SunSpider benchmark has been fixed (by removing the "g") in WebKit svn, but the web version of SunSpider still has the "g", and as far as we know, it always will.
Comment 1•16 years ago
|
||
Are they using the known-bogus version with 'g' in their marketing materials, I wonder?
I strongly suspect that we use 'g' in our application code, so removing it isn't a great option.
| Reporter | ||
Comment 2•16 years ago
|
||
(In reply to comment #1)
> Are they using the known-bogus version with 'g' in their marketing materials, I
> wonder?
I don't know. I don't suppose they show detailed FF results that would enable us to check that.
Is there any way we can persuade them to remove it? I know they want to keep benchmarks comparable over time, but as this is a flaw in the benchmark and it will only change the score of FF, that justification seems not to apply.
| Assignee | ||
Updated•11 years ago
|
Assignee: general → nobody
Comment 3•10 years ago
|
||
it's tracked in bug 1108382, and now in-tree consumers are removed from m-c and c-c, I'm going to add warning.
Comment 4•9 years ago
|
||
now I think this is simply a dupe of bug 1108382.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•