Skip to content

Commit

Permalink
Merge pull request #2996 from ericvergnaud/fix-js-perf-issue-cause-by…
Browse files Browse the repository at this point in the history
…-incorrect-fix

rollback partially incorrect fix for #2902
  • Loading branch information
ericvergnaud committed Dec 6, 2020
2 parents 1b947ee + 74b8bb7 commit 0ad7056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/JavaScript/src/antlr4/PredictionContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ function mergeArrays(a, b, rootIsWildcard, mergeCache) {
while (i < a.returnStates.length && j < b.returnStates.length) {
const a_parent = a.parents[i];
const b_parent = b.parents[j];
if (equalArrays(a.returnStates[i], b.returnStates[j])) {
if (a.returnStates[i] === b.returnStates[j]) {
// same payload (stack tops are equal), must yield merged singleton
const payload = a.returnStates[i];
// $+$ = $
Expand Down

0 comments on commit 0ad7056

Please sign in to comment.