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 247390 - Add module and exports to global variables list
Summary: Add module and exports to global variables list
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Node.js (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-23 07:16 UTC by Vladimir Riha
Modified: 2014-09-26 12:09 UTC (History)
0 users

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 Vladimir Riha 2014-09-23 07:16:36 UTC
If you have 

module.exports = ...

or 

exports.myfnc = ....

then both module and exports are being hinted as undeclared global variables. Would it be possible to add them to the list of known global variables?

Thank you 



  Product Version         = NetBeans IDE Dev (Build web-main-1310-on-20140923) (#eaf38dec65e3)
  Operating System        = Linux version 3.13.0-35-generic running on i386
  Java; VM; Vendor        = 1.9.0-ea; Java HotSpot(TM) Client VM 1.9.0-ea-b30; Oracle Corporation
  Runtime                 = Java(TM) SE Runtime Environment 1.9.0-ea-b30
Comment 1 Petr Pisl 2014-09-23 14:35:26 UTC
Fixed. The hint now checks also names of all global objects from frameworks.
Comment 2 Quality Engineering 2014-09-24 12:49:47 UTC
Integrated into 'main-silver', will be available in build *201409241121* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/fc60ced31ea3
User: Petr Pisl <ppisl@netbeans.org>
Log: #247390 - Add module and exports to global variables list
Comment 3 Vladimir Riha 2014-09-26 12:09:32 UTC
Thank you, verified

Product Version: NetBeans IDE Dev (Build 201409260001)
Java: 1.8.0_20; Java HotSpot(TM) Client VM 25.20-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_20-b26
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)