Avoid unnecessary work during lookahead (#9982)
* Do not call pushComment when doing lookahead * Do no updateContext when doing lookahead * Do not clone contexts anymore
This commit is contained in:
@@ -170,7 +170,7 @@ export default class State {
|
||||
// $FlowIgnore
|
||||
let val = this[key];
|
||||
|
||||
if ((!skipArrays || key === "context") && Array.isArray(val)) {
|
||||
if (!skipArrays && Array.isArray(val)) {
|
||||
val = val.slice();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user