1
0
mirror of synced 2025-11-06 04:30:40 +08:00

fix(#183): fixes undefined 'k' due to scoped 'let'

This commit is contained in:
Jamie Peabody
2024-03-11 19:45:47 +00:00
committed by GitHub
parent b09671febe
commit 02e383d94d

View File

@@ -146,7 +146,7 @@ diff.prototype._sms = function(lhs_ctx, lhs_lower, lhs_upper, rhs_ctx, rhs_lower
}
}
// Extend the reverse path.
for (k = kup - d; k <= kup + d; k += 2) {
for (let k = kup - d; k <= kup + d; k += 2) {
// find the only or better starting point
if (k === kup + d) {
x = vector_u[offset_up + k - 1]; // up