allow more bad javascript code

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4110 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
dolby-oss 2011-04-07 16:57:45 +00:00
parent a55a25595e
commit 5f47938e7e
1 changed files with 1 additions and 0 deletions

View File

@ -1339,6 +1339,7 @@ public class RhinoToAstTranslator {
ToolErrorReporter reporter = new ToolErrorReporter(true);
CompilerEnvirons compilerEnv = new CompilerEnvirons();
compilerEnv.setErrorReporter(reporter);
compilerEnv.setReservedKeywordAsIdentifier(true);
if (DEBUG)
System.err.println(("translating " + scriptName + " with Rhino"));