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

Summary: More than one undefined function argument shows as an error
Product: javascript Reporter: RodMagnuson
Component: EditorAssignee: Petr Pisl <ppisl>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P4    
Version: 7.3   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

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.