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 269259 - ES6 "export default" gives wrong warning
Summary: ES6 "export default" gives wrong warning
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
Depends on:
Reported: 2016-12-07 10:33 UTC by dusty
Modified: 2017-03-28 08:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description dusty 2016-12-07 10:33:14 UTC
The following JS source:

import Ember from 'ember'

export default Ember.Controller.extend({

  actions: {
    search(text) { }

Gives a warning on the "export" line with the text "The global variable *default* is not declared", and the corresponding underlined text (meaning that is wrong) is only on "Ember.Con".
Comment 1 dusty 2017-03-28 08:03:30 UTC
I've checked current trunk development snapshot and the wrong behavior is still there.