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 243918 - Exported property not resolved if declared with dependency
Summary: Exported property not resolved if declared with dependency
Status: RESOLVED DUPLICATE of bug 246729
Alias: None
Product: javascript
Classification: Unclassified
Component: RequireJS (show other bugs)
Version: 8.0.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-18 15:14 UTC by Vladimir Riha
Modified: 2015-04-23 16:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
sample project (91.18 KB, application/zip)
2014-04-18 15:14 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2014-04-18 15:14:29 UTC
Created attachment 146824 [details]
sample project

Please see the attached project:
 - open module1.js
 - on line 13 (the one with error), invoke cc

=> "dummy" is offered but it is marked as property, not function. Should dummy be some object (e.g. alien.anatomy) , it's properties wouldn't be offered either. 


Product Version: NetBeans IDE Dev (Build javascript2-frameworks-30-on-20140416)
Java: 1.8.0; Java HotSpot(TM) Client VM 25.0-b70
Runtime: Java(TM) SE Runtime Environment 1.8.0-b132
System: Linux version 3.2.0-60-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Roman Svitanic 2015-04-23 16:17:55 UTC
This issue is not specific for RequireJS support:

it can be reproduced even in plain JS:

function A() {
    this.test = function () {};
}
var a = new A();
var x = {
    demo: a.test()
};
x. // invoke CC here -> demo is not evaluated as a function

*** This bug has been marked as a duplicate of bug 246729 ***