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.
Please try following: promiseError.js: ============================ "use strict"; function TPError(type, msg, data) { this.type = type; this.msg = msg || "unknown"; this.data = data; } TPError.BadRequest = "BadRequest"; TPError.DatabaseError = "DatabaseError"; module.exports = TPError; file.js ============================= var TPError = require("promiseError"); TPError. - invoke cc after the dot in file.js => msg, data and type are offered although they are instance properties, not "class" Thank you Product Version: NetBeans IDE Dev (Build 201409220001) Java: 1.7.0_45; Java HotSpot(TM) 64-Bit Server VM 24.45-b08 Runtime: Java(TM) SE Runtime Environment 1.7.0_45-b18 System: Linux version 3.13.0-35-generic running on amd64; UTF-8; en_US (nb)
This will not be easy to fix. In file file.js the editor only knows that TPError is probably type of promiseError module. It doesn't know, whether the module exports the instance of the class. This has to be changed in the core js editor module.
Marking as P4. IMHO it is not serious issue.