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

fix: fixes undefined 'k' due to scoped 'let'

This commit is contained in:
Jamie Peabody
2024-03-11 19:43:28 +00:00
parent 5e4dfc9e78
commit e1db3c4f9e

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