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 247734 - Module exporting constructor not fully resolved
Summary: Module exporting constructor not fully resolved
Status: NEW
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:
: 249852 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-10-06 14:14 UTC by Vladimir Riha
Modified: 2015-05-19 14:49 UTC (History)
1 user (show)

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-10-06 14:14:36 UTC
Please try following:


file.js
=====================

function MyFnc() {
    this.ale = 1;
    this.ale2 = {
        f: 2,
        f1: 3
    };
    this.bar = function () {
        return new Date();
    };
}

MyFnc.stNumber = 1;
MyFnc.stDate = new Date();
MyFnc.prototype.attempt = 1;
MyFnc.prototype.getAttempt = function () {
    return {aa: 1, ab: 2};
};

exports.foobar = MyFnc;



main.js
======================
var xx = require("file);
var p = new xx.foobar();

p.


=> code completion for "p" and Go To declaration (e.g. p.attempt) does not work.


Thank you


Product Version: NetBeans IDE Dev (Build 201410060001)
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)
Comment 1 Roman Svitanic 2015-05-19 14:49:46 UTC
*** Bug 249852 has been marked as a duplicate of this bug. ***