Closed Bug 975484 Opened 10 years ago Closed 10 years ago

Location information is inaccurate for CallExpressions

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla30

People

(Reporter: jorendorff, Assigned: jorendorff)

Details

Attachments

(1 file)

The end position always leaves off at least the closing right parenthesis, and if there are no arguments, the left parenthesis as well.

  js> Reflect.parse("f    (    )").body[0].expression.loc
  ({start:{line:1, column:0}, end:{line:1, column:1}, source:null})

The end position here should be column 11, I think, since this is meant to be a half-open range.
Assignee: general → jorendorff
Attachment #8379865 - Flags: review?(luke)
Attachment #8379865 - Flags: review?(luke) → review+
https://hg.mozilla.org/mozilla-central/rev/7a2bb8e2f3cb
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: