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 248150

Summary: Anonymous function from module completes without braces
Product: javascript Reporter: Vladimir Riha <vriha>
Component: Node.jsAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal CC: tmysik
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Vladimir Riha 2014-10-23 19:48:26 UTC
Please try following (string_decoder is a NodeJS' module):

var sdec = require('string_decoder');
sdec.

=> cc offers StringDecoder, it has a function icon in cc list but it is completed without braces. 

The module's StringDecoder function is declared as

var StringDecoder = exports.StringDecoder = function(encoding) {...}


Thank you


Product Version: NetBeans IDE Dev (Build web-main-1441-on-20141022)
Updates: Updates available
Java: 1.7.0_67; Java HotSpot(TM) Client VM 24.65-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_67-b01
System: Linux version 3.13.0-35-generic running on i386; UTF-8; en_US (nb)