Opened 9 years ago

Closed 9 years ago

#13077 closed defect (invalid)

parser object invalid if first in require list

Reported by: rott Owned by: Rawld Gill
Priority: high Milestone: tbd
Component: BuildSystem Version: 1.6.1
Keywords: Cc:
Blocked By: Blocking:

Description

SVN 25190. Ubuntu 10.10, java 1.6, rhino build.

In a build, if I put the parser first in the list of requires, it is an invalid object. This only occurs with a build, not with src. Please see attached test.profile.js, test.html, and screenshot.

The error is "Uncaught TypeError?: Object 1 has no method 'parse'"

If I require anything else before dojo/parser, then the parser object is correctly initialized and callable.

Attachments (2)

test.profile.js (234 bytes) - added by rott 9 years ago.
test profile
test.html (573 bytes) - added by rott 9 years ago.

Download all attachments as: .zip

Change History (4)

Changed 9 years ago by rott

Attachment: test.profile.js added

test profile

Changed 9 years ago by rott

Attachment: test.html added

comment:1 Changed 9 years ago by rott

Ah! I just re-read http://bugs.dojotoolkit.org/ticket/13017 and realized I still had "script injection" in my test.html file. If I change to put "dojo/test" (my layer) in the require list instead of referencing it by <script> then things work.

Please cancel this ticket as user error.

comment:2 Changed 9 years ago by Chris Mitchell

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.