Open Bug 380379 Opened 17 years ago Updated 2 years ago

Round-trip uneval change due to inconsistent use of parens around function

Categories

(Core :: JavaScript Engine, defect)

defect

Tracking

()

People

(Reporter: jruderman, Unassigned)

References

Details

(Keywords: testcase, Whiteboard: [jsbugmon:testComment=1,origRev=d02d14a3dd6e])

js> function x() { }; o = [x]; print(uneval(o)); print(uneval(eval(uneval(o))));
[function x() {}]
[(function x() {})]

The two lines of output should be identical.
Summary: Round-trip uneval change due to inconsistent use of parens → Round-trip uneval change due to inconsistent use of parens around function
Depends on: 384756
OS: Mac OS X → All
Hardware: x86 → All
Assignee: general → nobody
function x() { };
o = [x];
assertEq(uneval(o), uneval(eval(uneval(o))));

fails the assert on m-c rev d02d14a3dd6e compiled with --enable-debug . Commenting here to try tracking via JSBugMon.
Whiteboard: [jsbugmon:update]
Whiteboard: [jsbugmon:update] → [jsbugmon:]
JSBugMon: Cannot process bug: Error: Failed to isolate original revision for test
Whiteboard: [jsbugmon:] → [jsbugmon:update,testComment=1,origRev=d02d14a3dd6e]
Whiteboard: [jsbugmon:update,testComment=1,origRev=d02d14a3dd6e] → [jsbugmon:testComment=1,origRev=d02d14a3dd6e]
JSBugMon: Cannot process bug: Unable to automatically reproduce, please track manually.
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.