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 238962 - [nashorn] Wrong value of watches
Summary: [nashorn] Wrong value of watches
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-29 10:07 UTC by Vladimir Riha
Modified: 2014-02-12 11:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
sample JS file (2.03 KB, text/plain)
2013-11-29 10:07 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2013-11-29 10:07:19 UTC
Created attachment 142716 [details]
sample JS file

Please try the attached sample code, add line breakpoint to line 64 and debug the file. Once debugger stops, add 2 watches:

test + test +"a" + homoSapiens.name

and for

homoSapiens.name


=> Type of the first watch is ConsString while it probably should be String, but values of both watches is [object Undefined]


Product Version: NetBeans IDE Dev (Build 201311290002)
Java: 1.8.0-ea; Java HotSpot(TM) Client VM 25.0-b59
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b117
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Martin Entlicher 2014-02-09 12:54:29 UTC
Fixed by changeset:   271846:e3c406e084af
http://hg.netbeans.org/core-main/rev/e3c406e084af
Comment 2 Quality Engineering 2014-02-12 02:39:58 UTC
Integrated into 'main-silver', will be available in build *201402120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e3c406e084af
User: mentlicher@netbeans.org
Log: #238962: Nashorn JavaScript watches display correct values.
Comment 3 Vladimir Riha 2014-02-12 11:13:52 UTC
Both values are correct now, thanks. Verified

Product Version: NetBeans IDE Dev (Build 201402120001)
Java: 1.8.0; Java HotSpot(TM) Client VM 25.0-b69
Runtime: Java(TM) SE Runtime Environment 1.8.0-b129
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)