Skip to content

Commit

Permalink
Reset languageMode to languageIn at the beginning of processNewScript()
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=131646895
  • Loading branch information
Dominator008 authored and brad4d committed Aug 29, 2016
1 parent e1fc820 commit cd3d81d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/com/google/javascript/jscomp/Compiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -2619,6 +2619,8 @@ public void addNewScript(JsAst ast) {
}

private void processNewScript(JsAst ast, Node originalRoot) {
languageMode = options.getLanguageIn();

Node js = ast.getAstRoot(this);
Preconditions.checkNotNull(js);

Expand Down

0 comments on commit cd3d81d

Please sign in to comment.