Skip to content

Commit

Permalink
Delete runtime exports on teardown
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed Feb 29, 2024
1 parent 7c990f7 commit 894b34b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -1129,6 +1129,9 @@ bare_runtime_teardown (bare_runtime_t *runtime, int *exit_code) {

bare_runtime_on_teardown(runtime, exit_code);

err = js_delete_reference(runtime->env, runtime->exports);
assert(err == 0);

err = js_destroy_env(runtime->env);
assert(err == 0);

Expand Down

0 comments on commit 894b34b

Please sign in to comment.