"invalid asm.js statement" shows wrong line number (semicolon of the previous statement)

RESOLVED FIXED in mozilla27

Status

()

defect
RESOLVED FIXED
6 years ago
6 years ago

People

(Reporter: jruderman, Assigned: luke)

Tracking

({testcase})

Trunk
mozilla27
x86_64
macOS
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

function v()
{
  "use asm";
  var x = 5;
  y = 5;
}

Result:   p.js:4:12 warning: asm.js type error: invalid asm.js statement
Expected: p.js:5:2  warning: asm.js type error: invalid asm.js statement
Posted patch fix-error-msgSplinter Review
Bug 900669 adds a peekTokenPos() which is what we need here to report the position of the error.
Assignee: nobody → luke
Status: NEW → ASSIGNED
Attachment #812651 - Flags: review?(sstangl)
Attachment #812651 - Flags: review?(sstangl) → review+
https://hg.mozilla.org/mozilla-central/rev/b299be671230
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
You need to log in before you can comment on or make changes to this bug.