Skip to content

Commit

Permalink
0.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Apr 18, 2023
1 parent 507275d commit 305202c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Binary file modified lib/spidermonkey_embedding.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bytecodealliance/componentize-js",
"version": "0.0.4",
"version": "0.0.5",
"type": "module",
"exports": "./src/componentize.js",
"devDependencies": {
Expand Down
6 changes: 2 additions & 4 deletions spidermonkey_embedding/spidermonkey_embedding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -819,11 +819,8 @@ check_init()
return R.init_err;
}

bool first_call = true;

__attribute__((export_name("call"))) uint32_t call(uint32_t fn_idx, void *argptr)
{
R.free_list.clear();
Runtime::CoreFn *fn = &R.fns[fn_idx];
R.cur_fn_idx = fn_idx;
if (DEBUG)
Expand Down Expand Up @@ -1007,11 +1004,12 @@ __attribute__((export_name("post_call"))) void post_call(uint32_t fn_idx)
// abort();
// }
R.cur_fn_idx = -1;
// TODO: pending https://github.com/bytecodealliance/preview2-prototyping/issues/145
R.free_list.clear();
for (void *ptr : R.free_list)
{
cabi_free(ptr);
}
R.free_list.clear();
log("(post_call) jobs");
js::RunJobs(R.cx);
log("(post_call) maybe gc");
Expand Down

0 comments on commit 305202c

Please sign in to comment.