This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 257342 - ES6 parsing error can't choose between alternatives
Summary: ES6 parsing error can't choose between alternatives
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks: 242387
  Show dependency tree
 
Reported: 2015-12-30 12:35 UTC by jockeeriksson
Modified: 2016-04-13 15:15 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jockeeriksson 2015-12-30 12:35:53 UTC
Strange parsing error on this class.

class SettingsView {


    onChange(event) {
       let v = event.target;
    }

}

export default SettingsView;

but this gets no error

class SettingsView {

    onChange(event) {
       let v = event;
    }

}

export default SettingsView;
Comment 1 Petr Pisl 2016-04-05 15:05:19 UTC
The error is not here now, but the parser wrong parse the export expression.
Comment 2 Petr Hejl 2016-04-13 15:15:47 UTC
This seems to be fixed.