Closed Bug 1121185 Opened 9 years ago Closed 9 years ago

OdinMonkey: relax final-return-statement rules

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla38

People

(Reporter: luke, Assigned: luke)

Details

Attachments

(1 file)

Attached patch relax-ret-typeSplinter Review
Assignee: nobody → luke
Status: NEW → ASSIGNED
Attachment #8548470 - Flags: review?(benj)
Comment on attachment 8548470 [details] [diff] [review]
relax-ret-type

Review of attachment 8548470 [details] [diff] [review]:
-----------------------------------------------------------------

Nice, can you add tests in which we *don't* have the final return coercion, please?
Attachment #8548470 - Flags: review?(benj) → review+
I can add more, but the two test changes in testControlFlow.js don't have final return coercions.
Oh right, it wasn't clear to me as they didn't have final return coercions in the first place, but I see operations have been added that change the type of the final returned value.  So, good to land.
https://hg.mozilla.org/mozilla-central/rev/38ad6d18d2ce
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: