Summary: | XDCscript parser errors no longer provide valid file line number info | ||
---|---|---|---|
Product: | [Technology] RTSC (ARCHIVED) | Reporter: | Vikram Adiga <vikram.adiga> |
Component: | Core | Assignee: | Sasha Slijepcevic <sascha> |
Status: | ASSIGNED --- | QA Contact: | |
Severity: | major | ||
Priority: | P3 | CC: | dfriedland, vikram.adiga |
Version: | unspecified | Keywords: | readme |
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Vikram Adiga
2013-05-08 21:18:01 EDT
This appears to be a Rhino 1.7R4 regression: [sanblnx02 1008] cat foo.xs function foo() { var a = 10; var b = 5; if (a == 10 || b = 5) { } } [sanblnx02 1009] .../xdc/xdctools_3_24_07_73/Linux/xs -f foo.xs js: "./foo.xs", line 4: Invalid assignment left-hand side. js: if (a == 10 || b = 5) { js: ........................^ js: "./foo.xs", line 1: Compilation produced 1 syntax errors. "/db/rtree/library/trees/xdcprod/xdcprod-q73/product/Linux/xdctools_3_24_07_73/include/utils.tci", line 662 [sanblnx02 1010] .../xdc/xdctools_3_25_00_48/Linux/xs -f foo.xs js: ".", line 1: Invalid assignment left-hand side. js: js: ^ js: "/db/rtree/library/trees/xdcprod/xdcprod-r48/product/Linux/xdctools_3_25_00_48/packages/xdc/utils.js", line 503: null The Rhino shell is not working correctly either: $TOOLS/vendors/oracle/jre/1.6.0_37/Linux/bin/java -cp $XDCTOOLS/xdctools_3_24_08_74_eng/Linux/packages/xdc/shelf/java/js.jar org.mozilla.javascript.tools.shell.Main test.js js: "test.js", line 3: Invalid assignment left-hand side. js: if (a == 5 || b = 10) { js: ....................^ js: "test.js", line 5: syntax error js: } js: ^ $TOOLS/vendors/oracle/jre/1.6.0_37/Linux/bin/java -cp $XDCTOOLS/xdctools_3_25_01_58_eng/Linux/packages/xdc/shelf/java/js.jar org.mozilla.javascript.tools.shell.Main test.js js: line 1: Invalid assignment left-hand side. js: js: ^ Exception in thread "main" org.mozilla.javascript.Parser$ParserException This does not look good for a quick fix. I started a thread on mozilla-rhino newsgroup to see if anyone else had the same problem, and where the fix should be. http://groups.google.com/group/mozilla-rhino/browse_thread/thread/84e03acb14682459 |