Closed Bug 776317 Opened 13 years ago Closed 13 years ago

toString and toSource allow closing "}" to end up in a line-comment

Categories

(Core :: JavaScript Engine, defect)

x86_64
macOS
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla17
Tracking Status
firefox17 - verified

People

(Reporter: jruderman, Assigned: Benjamin)

References

Details

(Keywords: regression, testcase, Whiteboard: [qa-])

Attachments

(1 file, 1 obsolete file)

js> new Function("//") (function anonymous() { // }) Maybe the stored source for "new Function()" should get line breaks before and after the input.
Attached patch add newlines (obsolete) — Splinter Review
Assignee: general → bpeterson
Attachment #644761 - Flags: review?(luke)
Same thing as above with other tests that depend on the value updated.
Attachment #644761 - Attachment is obsolete: true
Attachment #644761 - Flags: review?(luke)
Attachment #644764 - Flags: review?(luke)
Attachment #644764 - Flags: review?(luke) → review+
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
Glad this is fixed, no need to track for 17.
Does this have tests or need tests?
Flags: in-testsuite?
Whiteboard: [qa-]
Tests got landed in the checkin. VERIFIED too.
Status: RESOLVED → VERIFIED
Flags: in-testsuite? → in-testsuite+
Thanks Gary.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: