Closed Bug 149285 Opened 23 years ago Closed 23 years ago

Complier does not report the correct line number on SyntaxError:Invalid assignment left-hand side.

Categories

(Rhino Graveyard :: Compiler, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: zoltan.luspai, Assigned: norrisboyd)

Details

Attachments

(1 file)

This script throws an EcmaError which is correct, but the EcmaError contains invalid 0 as line number for the error: a=15; b='test'; if(DateTime.length() = 14) { } Please see the attached JUnit test case reproduces the problem.
Fixed: Checking in IRFactory.java; /cvsroot/mozilla/js/rhino/src/org/mozilla/javascript/IRFactory.java,v <-- IRFactory.java new revision: 1.23; previous revision: 1.22 done
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Zoltan, could you verify that this bug is now fixed? If so, please mark this bug "Verified"; otherwise, you can reopen it; thanks -
Verified; it works fine. Thanks.
Status: RESOLVED → VERIFIED
Targeting as resolved against 1.5R4
Target Milestone: --- → 1.5R4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: