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 267494 - Wrong mark occurrences after this
Summary: Wrong mark occurrences after this
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-08 21:41 UTC by Petr Pisl
Modified: 2016-08-10 01:54 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 2016-08-08 21:41:48 UTC
Have a simple code:

function PC (){
    this.buf = 10;

   
    this.peek = function peek() { 
        var buf = this.buf;
        buf = 20;
        console.log(this.buf);
        console.log(buf);
    };
}

var a = new PC();
a.peek();

The PC object has priviliged property buf. The method peek has private buf variable. When you place caret on the var buf = this.buf in peek function, then is marked buf after this as well. It shouldn't be.
Comment 1 Petr Pisl 2016-08-08 21:49:49 UTC
Fixed in web-main.
Comment 2 Quality Engineering 2016-08-10 01:54:03 UTC
Integrated into 'main-silver', will be available in build *201608100002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/af69ca261256
User: Petr Pisl <ppisl@netbeans.org>
Log: #267494 - Wrong mark occurrences after this.