Closed tapasvimoturu closed 10 years ago
I believe this is fixed in 1.6.0, see release notes: https://github.com/theintern/intern/releases/tag/1.6.0
As @dylans noted, support for legacy 3-argument AMD signature was added to the loader for Intern 1.6. If you are using Intern 1.5, you can use an alternative loader with useLoader
that supports this signature. However, as noted, the 3-argument signature is legacy and strongly discouraged when authoring any AMD modules, so if you are doing it yourself, you should remove it from your code. :)
source/object.js
test.js
Error Returned
Uncaught TypeError: Object BaseObject has no method 'map'
Root Cause
Intern 1.5 seems to be using a internal version of dojo from the following pacakges.json config.
The dojo.js in this tar file seems to only have two properties in the define method as compared to three in dojo 1.9.3 or 2.1 Tar file method definition looks like the one below (dojo.js line 817)
https://github.com/dojo/dojo/blob/master/dojo.js#L1752
Now since we are passing argument in order. The loader assumes that the first parameter is an array that contains dependencies and fails.
Why does this need to be fixed ?
This is breaking the tests with popular dependencies like _ as well as custom module in our project source. This is a standard in amd as well where module id is an optional parameter in the define method call.
Let me know if you have questions Tapasvi