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 229378 - More than one undefined function argument shows as an error
Summary: More than one undefined function argument shows as an error
Status: RESOLVED WORKSFORME
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-05 23:41 UTC by RodMagnuson
Modified: 2015-08-06 12:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (61.57 KB, text/plain)
2013-05-05 23:41 UTC, RodMagnuson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description RodMagnuson 2013-05-05 23:41:37 UTC
Product Version = NetBeans IDE 7.3 (Build 201302132200)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_15
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.7-b01

Seems strange, but here's an example:

/**
 * Load ojknockout here, so no one else has to worry about it
 */
require(
[
    'jquery', 'jqueryui', 'ojknockout',
    
    'otool/framework/documents/TextResource',
    'otool/framework/utilities/ConsoleUtils'
],
// this callback gets executed when all required modules are loaded
function($, undefined, undefined,
           TextResource, consoleUtils)
...

I want jqueryui, and ojknockout to load, but I don't want arguments for them.

Probably not a very important use case, just seemed weird that undefined could eve produce an error.
Comment 1 RodMagnuson 2013-05-05 23:41:43 UTC
Created attachment 134121 [details]
IDE log
Comment 2 Petr Pisl 2015-08-06 12:17:07 UTC
Currently no errors are generated in such case. Works correctly now. Thanks.