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

Summary: ES6 parsing error can't choose between alternatives
Product: javascript Reporter: jockeeriksson <jockeeriksson>
Component: EditorAssignee: Petr Hejl <phejl>
Status: RESOLVED FIXED    
Severity: normal CC: dusty
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 242387    

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.