Merge pull request #2996 from ericvergnaud/fix-js-perf-issue-cause-by-incorrect-fix

rollback partially incorrect fix for #2902
This commit is contained in:
ericvergnaud 2020-12-06 22:25:15 +08:00 committed by GitHub
commit 0ad70569b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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];
// $+$ = $