CommonJS AMD-style "define([...], function(...) {...});" compiler errors [message #994370] |
Thu, 27 December 2012 05:33 |
rob montgomery Messages: 11 Registered: July 2012 |
Junior Member |
|
|
I recently downloaded the latest .ZIP of the Firefox compatible FireBug code and created an Eclipse project from this code. I'm running:
Eclipse Java EE IDE for Web Developers.
Version: Juno Service Release 1
Build id: 20120920-0800
The javascript precompiler is throwing many errors on the CommonJS AMD-style of "define([...], function(...) {...});" (see the uploaded screen shots). Many of the files don't have errors, but about 50 of the files using this syntax are throwing errors and I can not identify any differences or fixes to correct these errors. I prefer to use Eclipse for Javascript development due to these kinds of tools, but, given that the FireBug source has gone through extensive testing, could this be an error in the JSDT precompiler (or syntax validator)?
The compilation error is "The left-hand side of an assignment must be a variable".
Of all the forums, this AJAX forum seemed to be the most appropriate for this question so if this is not the correct forum, please direct me to the correct one.
[Updated on: Thu, 27 December 2012 11:00] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03542 seconds