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 250337 - Wrong global variable
Summary: Wrong global variable
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-10 11:55 UTC by Ondrej Brejla
Modified: 2015-04-10 03:08 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 Ondrej Brejla 2015-02-10 11:55:52 UTC
// Everything OK

var observer = new MutationObserver(function(mutations) {
    var $viewWrappers = foo();
    if ($viewWrappers) {
    }
});

// $viewWrappers.length -> $viewWrappers wrongly considered to be global

var observer = new MutationObserver(function(mutations) {
    var $viewWrappers = foo();
    if ($viewWrappers.length) {
    }
});

Thanks.
Comment 1 Petr Pisl 2015-04-09 13:41:36 UTC
Fixed in web-main.
Comment 2 Quality Engineering 2015-04-10 03:08:57 UTC
Integrated into 'main-silver', will be available in build *201504100001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/a3ca5fc21bd3
User: Petr Pisl <ppisl@netbeans.org>
Log: #250337 - Wrong global variable