File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 2121 "fmt" : " deno fmt && cargo fmt" ,
2222 "build" : " WASMBUILD_BINDGEN_UPGRADE=1 deno run -A ./main.ts -p wasmbuild" ,
2323 "build:lkg" : " deno run -A jsr:@deno/wasmbuild@^0.15.4 -p wasmbuild" ,
24- "test" : " cd tests && rm -rf lib lib_out_js_file lib_inline lib_no_cache && deno task test:main && deno task test:js-ext && deno task test:inline && deno test -A && deno task test:check && deno task test:start" ,
24+ "test" : " cd tests && rm -rf lib lib_out_js_file lib_inline lib_no_cache && deno task test:main && deno task test:js-ext && deno task test:inline && deno test -A && deno task test:check && deno task test:start && deno task test:start-inline " ,
2525 "test:main" : " cd tests && deno run -A ../main.ts -p deno_test" ,
2626 "test:js-ext" : " deno task test:main --js-ext mjs --out lib_out_js_file && cat tests/lib_out_js_file/deno_test.mjs > /dev/null" ,
2727 "test:check" : " deno task test:main --check" ,
2828 "test:inline" : " deno task test:main --inline --out lib_inline" ,
29- "test:start" : " cd tests && deno run -A ../main.ts -p deno_test --features start && USES_START=1 deno test -A test.ts"
29+ "test:start" : " cd tests && deno run -A ../main.ts -p deno_test --features start && USES_START=1 deno test -A test.ts" ,
30+ "test:start-inline" : " cd tests && deno run -A ../main.ts -p deno_test --features start --inline && USES_START=1 deno test -A test.ts"
3031 },
3132 "imports" : {
3233 "@david/path" : " jsr:@david/path@^0.2.0" ,
Original file line number Diff line number Diff line change @@ -130,7 +130,9 @@ const wasm = new WebAssembly.Instance(wasmModule, {
130130
131131export * from "./${ output . bindingJsBg . path . basename ( ) } ";
132132import { __wbg_set_wasm } from "./${ output . bindingJsBg . path . basename ( ) } ";
133- __wbg_set_wasm(wasm.exports);
133+ __wbg_set_wasm(wasm.exports);${
134+ output . hasStart ? "\nwasm.exports.__wbindgen_start();" : ""
135+ }
134136
135137function base64decode(b64) {
136138 const binString = atob(b64);
You can’t perform that action at this time.
0 commit comments