put containsEsc on state rather than as a local variable

This commit is contained in:
Sebastian McKenzie
2015-07-31 12:44:54 +01:00
parent f5d9427153
commit aee240c73e
2 changed files with 10 additions and 10 deletions

View File

@@ -54,6 +54,12 @@ export default class State {
this.context = [ct.b_stat];
this.exprAllowed = true;
// Used to signal to callers of `readWord1` whether the word
// contained any escape sequences. This is needed because words with
// escape sequences must not be interpreted as keywords.
this.containsEsc = false;
return this;
}