Skip to content

Commit

Permalink
better api
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh authored and andrewosh committed Jul 5, 2024
1 parent 2b14401 commit 02b73b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -1654,9 +1654,9 @@ test('basic - interrupt', async t => {
t.pass('should throw')
}

function applyWithInterupt (nodes) {
function applyWithInterupt (nodes, view, base) {
for (const node of nodes) {
if (node.value.interrupt) a.interrupt(new Error('stop'))
if (node.value.interrupt) base.interrupt()
}
}
})
Expand Down

0 comments on commit 02b73b6

Please sign in to comment.