Closed
Bug 532041
Opened 15 years ago
Closed 15 years ago
js_FindDuplicateFormal misinterprets fun->u.i.names union
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
People
(Reporter: brendan, Assigned: jimb)
References
Details
(Keywords: regression, Whiteboard: fixed-in-tracemonkey)
Attachments
(1 file)
4.74 KB,
patch
|
jimb
:
review+
|
Details | Diff | Splinter Review |
See bug 514580 comment 11 et seq.
/be
Reporter | ||
Updated•15 years ago
|
Reporter | ||
Comment 1•15 years ago
|
||
Attachment #415345 -
Flags: review?(jim)
Reporter | ||
Comment 2•15 years ago
|
||
This strict formal checking looks costly -- under ES5's "use strict" or ye olde JSOPTION_STRICT, every function pays for CheckStrictForamls even though the code earlier in FunctionDef adds one formal at a time to fun->u.i.names and therefore knows right away whether there are any dups.
/be
Assignee | ||
Updated•15 years ago
|
Attachment #415345 -
Flags: review?(jim) → review+
Reporter | ||
Comment 3•15 years ago
|
||
Whiteboard: fixed-in-tracemonkey
Assignee | ||
Comment 4•15 years ago
|
||
(In reply to comment #2)
> This strict formal checking looks costly -- under ES5's "use strict" or ye olde
> JSOPTION_STRICT, every function pays for CheckStrictForamls even though the
> code earlier in FunctionDef adds one formal at a time to fun->u.i.names and
> therefore knows right away whether there are any dups.
Filed as bug 532421.
Assignee | ||
Comment 5•15 years ago
|
||
Test case added; patch and review in bug 532341.
Flags: in-testsuite+
Comment 6•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Comment 7•15 years ago
|
||
jimb: you missed a call to reportCompare. It will be automatically orange on jsreftests.
Assignee | ||
Comment 8•15 years ago
|
||
(In reply to comment #7)
> jimb: you missed a call to reportCompare. It will be automatically orange on
> jsreftests.
http://hg.mozilla.org/tracemonkey/rev/860a58855453
You need to log in
before you can comment on or make changes to this bug.
Description
•