Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » ATF » CommonJS AMD-style "define([...], function(...) {...});" compiler errors(Downloaded FireBug Javascript is throwing inconsistent errors on the "define([...], function(...) {...});" syntax)
CommonJS AMD-style "define([...], function(...) {...});" compiler errors [message #994370] Thu, 27 December 2012 00:33
rob montgomery is currently offline 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 06:00]

Report message to a moderator

Previous Topic:ATF support Juno?
Next Topic:ATF Migrated to Web Browser Tools
Goto Forum:
  


Current Time: Sat Apr 19 00:31:34 EDT 2014

Powered by FUDForum. Page generated in 0.04819 seconds