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.
Please try: function str2array (s) { var spaces = /\s+/, a1 = [""]; if (typeof s == "string" || s instanceof String) { if (s.indexOf(" ") < 0) { a1[0] = s; return a1; } else { return s.split(spaces); } } return s; }; => return type in Navigator is Array|str2array.s Product Version: NetBeans IDE Dev (Build 20130623-ea62245fed2c) Java: 1.7.0_25; Java HotSpot(TM) Client VM 23.25-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b15 System: Linux version 3.2.0-45-generic-pae running on i386; UTF-8; en_US (nb)
This is similar to issue 231699 if you understand "str2array.s" to mean "s in context of str2array". I would explain that is "property s of str2array" but again, it could be just me.
Fixed in web-main.
Integrated into 'main-silver', will be available in build *201307312300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/45ce2f342763 User: Petr Pisl <ppisl@netbeans.org> Log: #231697 - Function returns own non-existing property