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 51c3ec4 commit b14b25e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/repl/await.js
Expand Up @@ -205,7 +205,7 @@ function processTopLevelAwait(src) {
},
prepend(node, str) {
const length = ArrayFrom(node.expression.value).length;
const idx = node.start - wrapped.length - wrappedArray.length - length;
const idx = node.start - wrapped.length + wrappedArray.length + length;
wrappedArray[idx] = str + wrappedArray[idx];
},
append(node, str) {
Expand Down

0 comments on commit b14b25e

Please sign in to comment.