Skip to content

Commit

Permalink
Restore 2 try/catch
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Mar 8, 2024
1 parent b645681 commit 5d08081
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/interactivity/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,16 @@ const handlers = {
setScope( scope );
try {
it = gen.next( value );
} finally {
resetScope();
resetNamespace();
}

try {
value = await it.value;
} catch ( e ) {
setNamespace( ns );
setScope( scope );
gen.throw( e );
} finally {
resetScope();
Expand Down

0 comments on commit 5d08081

Please sign in to comment.