Open GoogleCodeExporter opened 8 years ago
This is the line Eclipse's knickers get in a twist about:
new function(_no_shrink_) { /////////////// BEGIN: CLOSURE ///////////////
Original comment by michael.maguire@gmail.com
on 22 Feb 2012 at 11:45
Oh, I also get at l. 1675 (last line):
}; //////////////////// END: CLOSURE /////////////////////////////////////
the error:
Syntax error, insert "]" to complete NewExpression
Original comment by michael.maguire@gmail.com
on 22 Feb 2012 at 11:49
The following patch seems to fix it (and my code which calls into base2.js
still seems to work). Is this a case of Eclipse's JavaScript parser not being
up-to-date to the latest evolution of the spec, or is it being too picky?
Index: base2.js
===================================================================
--- base2.js (revision 32027)
+++ base2.js (working copy)
@@ -16,7 +16,7 @@
namespace: ""
};
-new function(_no_shrink_) { /////////////// BEGIN: CLOSURE ///////////////
+(new function(_no_shrink_) { /////////////// BEGIN: CLOSURE ///////////////
// =========================================================================
// base2/header.js
@@ -1672,4 +1672,4 @@
lang.base = base;
lang.extend = extend;
-}; //////////////////// END: CLOSURE /////////////////////////////////////
\ No newline at end of file
+}) //////////////////// END: CLOSURE /////////////////////////////////////
\ No newline at end of file
Original comment by michael.maguire@gmail.com
on 22 Feb 2012 at 1:57
Original issue reported on code.google.com by
michael.maguire@gmail.com
on 22 Feb 2012 at 11:44