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 235862 - JavaScript warning/error on empty JavaScript
Summary: JavaScript warning/error on empty JavaScript
Status: RESOLVED DUPLICATE of bug 226037
Alias: None
Product: javascript
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.4
Hardware: PC Windows 7 x64
: P4 normal (vote)
Assignee: issues@javascript
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-12 08:31 UTC by scriptoid
Modified: 2013-09-12 08:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screnshot with warning (68.17 KB, image/jpeg)
2013-09-12 08:33 UTC, scriptoid
Details

Note You need to log in before you can comment on or make changes to this bug.
Description scriptoid 2013-09-12 08:31:36 UTC
NetBeans 7.4 trigger error and warnings on JavaScript (.js) file that contain unassigned anonymous objects.
See the code bellow:

--------------------------------------------------------------

//bellow code trigger warning
{    
    hello:function(msg){
    }
}

//but the following code does not
{
    flag: true;
}



----------------------------------------------------------
Product Version = NetBeans IDE 7.4 Beta (Build 201307092200)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_21
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.21-b01
Comment 1 scriptoid 2013-09-12 08:33:34 UTC
Created attachment 139970 [details]
screnshot with warning
Comment 2 scriptoid 2013-09-12 08:34:42 UTC
Running this script in console (Rhino) did not generate any issue.
Comment 3 Vladimir Riha 2013-09-12 08:54:05 UTC

*** This bug has been marked as a duplicate of bug 226037 ***