Closed
Bug 1005213
Opened 11 years ago
Closed 9 years ago
JS shell: 'options' function no longer returns prior options set
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
DUPLICATE
of bug 1000254
People
(Reporter: jimb, Unassigned)
Details
Attachments
(1 file)
1.87 KB,
patch
|
ejpbruel
:
review+
|
Details | Diff | Splinter Review |
Bug 880330 (changeset e437294a2dbe) seems to have introduced a bug in the
JS shell's 'options' function, causing it to no longer return the previous
set of options. Many tests use 'options' like this:
var oldOpts = options("werror");
assertEq(oldOpts.indexOf("werror"), -1);
The code only appends option names to the result string if "!name", which
of course is never true if the strdup succeeds.
Attachment #8416621 -
Flags: review?(ejpbruel)
Comment 1•11 years ago
|
||
Comment on attachment 8416621 [details] [diff] [review]
Make the JS shell 'options' function properly return the prior options set.
Review of attachment 8416621 [details] [diff] [review]:
-----------------------------------------------------------------
I believe I wrote this code as part of the option flag refactor I did a while ago. Looks like I inverted the logic. Oops! Good catch!
Attachment #8416621 -
Flags: review?(ejpbruel) → review+
Updated•9 years ago
|
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
•