Skip to content

Commit 305202c

Browse files
author
Guy Bedford
committed
0.0.5
1 parent 507275d commit 305202c

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

lib/spidermonkey_embedding.wasm

-101 Bytes
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bytecodealliance/componentize-js",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"type": "module",
55
"exports": "./src/componentize.js",
66
"devDependencies": {

spidermonkey_embedding/spidermonkey_embedding.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -819,11 +819,8 @@ check_init()
819819
return R.init_err;
820820
}
821821

822-
bool first_call = true;
823-
824822
__attribute__((export_name("call"))) uint32_t call(uint32_t fn_idx, void *argptr)
825823
{
826-
R.free_list.clear();
827824
Runtime::CoreFn *fn = &R.fns[fn_idx];
828825
R.cur_fn_idx = fn_idx;
829826
if (DEBUG)
@@ -1007,11 +1004,12 @@ __attribute__((export_name("post_call"))) void post_call(uint32_t fn_idx)
10071004
// abort();
10081005
// }
10091006
R.cur_fn_idx = -1;
1007+
// TODO: pending https://github.com/bytecodealliance/preview2-prototyping/issues/145
1008+
R.free_list.clear();
10101009
for (void *ptr : R.free_list)
10111010
{
10121011
cabi_free(ptr);
10131012
}
1014-
R.free_list.clear();
10151013
log("(post_call) jobs");
10161014
js::RunJobs(R.cx);
10171015
log("(post_call) maybe gc");

0 commit comments

Comments
 (0)