Closed Bug 630213 Opened 15 years ago Closed 15 years ago

ASTSerializer::leftAssociate right-associates

Categories

(Core :: JavaScript Engine, defect)

Other Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jorendorff, Assigned: jorendorff)

References

Details

(Whiteboard: [fixed-in-tracemonkey])

Attachments

(1 file)

I was playing with my minimizer this weekend and came across this. Reflect.parse("a-b-c") produces a tree for "a-(b-c)". js> uneval(Reflect.parse("a-b-c",{loc:0})) === uneval(Reflect.parse("a-(b-c)",{loc:0})) true But they're two different programs. js> var a=3, b=2, c=1; js> a-b-c 0 js> a-(b-c) 2
Attached patch v1 — — Splinter Review
Assignee: general → jorendorff
Attachment #508422 - Flags: review?(dherman)
Oy, this one's embarrassing. Patch is good, thanks. r=me Dave
Attachment #508422 - Flags: review?(dherman) → review+
Whiteboard: [fixed-in-tracemonkey]
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: