Community
Participate
Working Groups
The running the google closure compiler during the releng build, it fails on editor.js complaining that "char" is a reserved word. [java] [java] /shared/eclipse/e4/orion/I201103010200/plugins/org.eclipse.orion.client.editor/web/js/editor.js:2802: ERROR - Parse error. missing variable name [java] if (char !== " ") { [java] ^ [java] [java] /shared/eclipse/e4/orion/I201103010200/plugins/org.eclipse.orion.client.editor/web/js/editor.js:2803: ERROR - Parse error. identifier is a reserved word [java] text += char; [java] ^
Fixed http://git.eclipse.org/c/e4/org.eclipse.orion.client.git/commit/?id=c7aab7eec79e0da69ed2eb082b0d9981db10c78f
Interesting. Closure appears to be incorrect. "char" is not a reserved word in ECMAScript or JavaScript: http://people.mozilla.org/~jorendorff/es5.html#sec-7.6.1 https://developer.mozilla.org/en/JavaScript/Reference/Reserved_Words
Here is the closure bug... I guess its easier to just change our code anyway: http://code.google.com/p/closure-compiler/issues/detail?id=357