Opened 13 years ago

Last modified 8 years ago

#2536 closed defect

dojo.requireIf fails in custom build with parentheses condition — at Initial Version

Reported by: [email protected] Owned by: James Burke
Priority: high Milestone: future
Component: BuildSystem Version: 0.4.2rc1
Keywords: Cc:
Blocked By: Blocking:


In a source file, doing dojo.requireIf( (!(a && a.b)), "a.b") returns an error during the build "exception: SyntaxError?: missing ) after argument list". (rev 7517)

Refactoring the requireIf statement to look like: dojo.requireIf( !a || !a.b, "a.b") works fine. (ie. remove the parentheses)

I assume its a regexp somewhere which isn't being greedy enough, but I couldn't seem to find the correct one in buildUtil.js.

Change History (0)

Note: See TracTickets for help on using tickets.