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 252028 - Private objects are not visible in navigator
Summary: Private objects are not visible in navigator
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks: 252017
  Show dependency tree
 
Reported: 2015-04-23 15:24 UTC by Petr Pisl
Modified: 2015-05-16 08:29 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 Petr Pisl 2015-04-23 15:24:21 UTC
Have a code:
--------------------------------
function MySpace() {
    this.name = "hello";
    var PrivateObject = function  (){
        console.log("running... ");
        this.sound = "prd";
        this.name = "cau";
        console.log(this.sound);
    }; 

    var prom = new PrivateObject();
    console.log(this.name);
    console.log(prom.sound);
    console.log(prom.name);
    return this;
}
  
var star = new MySpace();
console.log(star.name);

--------------------------------

The PrivateClass is not visible in navigator.
Comment 1 Petr Pisl 2015-04-23 15:33:34 UTC
If the line var PrivateObject = function  (){ is replaced with var PrivateObject = function  PrivateO (){ then the PrivateO is visible in navigator.
Comment 2 Petr Pisl 2015-05-15 08:05:17 UTC
Fixed in web-main
Comment 3 Quality Engineering 2015-05-16 08:29:54 UTC
Integrated into 'main-silver', will be available in build *201505160001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/40e541c2dd21
User: Petr Pisl <ppisl@netbeans.org>
Log: #252028 - Private objects are not visible in navigator