Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Mesteery committed Aug 29, 2021
1 parent 99d0d08 commit 638fb9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/repl/await.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ function processTopLevelAwait(src) {
wrappedArray[node.start] = str + wrappedArray[node.start];
},
append(node, str) {
// We need to calculate the difference between the wrapped string and array
// We need to calculate the difference between wrapped and wrappedArray
// in order to correctly handle surrogate characters.
const offset = wrapped.length - wrappedArray.length;
wrappedArray[node.end - 1 - offset] += str;
Expand Down

0 comments on commit 638fb9b

Please sign in to comment.