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 250899 - Incomplete CC in with statement
Summary: Incomplete CC in with statement
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC All
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-04 15:29 UTC by Roman Svitanic
Modified: 2015-03-04 16:56 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 Roman Svitanic 2015-03-04 15:29:07 UTC
Suppose the following function in demo.js file:
(function () {
    angular.controller('Demo', [function ($scope) {
            $scope.sample = 'Hello!';
        }]);
})();

Then virtual source generated for Angular CC will be something like:
(function () {
    var $scope = demo_L1.demo_L2.$scope;
    with ($scope) {
        |
    }
});

Try to invoke the CC in regular JS editor instead of "|". Expected result is that "sample" is offered. In actual result "sample" is missing.
This affects bug #246444.