Closed Bug 469940 Opened 11 years ago Closed 11 years ago

Automatic semicolon insertion wrongly done after var with multi-line initializer

Categories

(Core :: JavaScript Engine, defect, P2)

defect

Tracking

()

VERIFIED FIXED
mozilla1.9.1b3

People

(Reporter: brendan, Assigned: brendan)

Details

(Keywords: testcase, verified1.9.1)

Attachments

(1 file)

$ cat /tmp/semi.js
var x = function f() {
return 42;} print(x);

should not be error-corrected, as there is no newline between the var statement and the print(x); statement.

/be
Attached patch fixSplinter Review
Attachment #353358 - Flags: review?(mrbkap)
Easy standards-conformance fix.

/be
Flags: wanted1.9.1?
Priority: -- → P2
Attachment #353358 - Flags: review?(mrbkap) → review+
Flags: wanted1.9.1? → wanted1.9.1+
Attachment #353358 - Flags: approval1.9.1?
Fixed in m-c:

http://hg.mozilla.org/mozilla-central/rev/ebf6828c37b3

/be
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Attachment #353358 - Flags: approval1.9.1? → approval1.9.1+
Keywords: testcase
Checking in js1_5/LexicalConventions/regress-469940.js
http://hg.mozilla.org/mozilla-central/rev/73494cd74260
Flags: in-testsuite+
Flags: in-litmus-
v 1.9.1, 1.9.2
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.