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.
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)
Fixed by changeset: 271846:e3c406e084af http://hg.netbeans.org/core-main/rev/e3c406e084af
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.
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)