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 setup: src.js =============== module.exports = function AAA(){ this.pokus = 1; } main.js =============== var my = require("./src"); var e = new my(); e. => it should offer "pokus" but it offers only the generic code completion Thank you Product Version: NetBeans IDE Dev (Build 201412050001) Java: 1.7.0_71; Java HotSpot(TM) Client VM 24.71-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_71-b14 System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)
Reproducible.
This can be reproduced even without Node (require): Consider following cases (notice the name of function A in case [1] and no name in [2]): [1] demo.Modul = function A(){ this.pokus = 1; }; and [2] demo.Modul = function(){ this.pokus = 1; }; Then: var X = demo.Modul; var x = new X(); x.| // in case [1] pokus is NOT offered, while in [2] pokus IS offered. ---- Same applies for the original issue here.