Skip to content

Commit

Permalink
try finally
Browse files Browse the repository at this point in the history
  • Loading branch information
toyobayashi committed Oct 3, 2023
1 parent 0d69834 commit 36012cb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/runtime/src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,11 @@ export class Env implements IStoreValue {
} else {
const saved = this.inGcFinalizer
this.inGcFinalizer = true
finalizer.finalize()
this.inGcFinalizer = saved
try {
finalizer.finalize()
} finally {
this.inGcFinalizer = saved
}
}
}

Expand Down

0 comments on commit 36012cb

Please sign in to comment.