Skip to content

Commit f224d23

Browse files
authored
[MODULARIZE=instance] Enable direct running of output under v8 (#24337)
1 parent ce82cd5 commit f224d23

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,7 @@ jobs:
649649
wasmfs.test_fs_llseek_rawfs
650650
wasmfs.test_freetype
651651
minimal0.test_utf
652+
instance.test_async_hello_v8
652653
"
653654
test-wasm2js1:
654655
environment:

src/postamble.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,13 @@ if (ENVIRONMENT_IS_NODE
341341
}
342342
#endif
343343

344+
#if ENVIRONMENT_MAY_BE_SHELL
345+
if (ENVIRONMENT_IS_SHELL) {
346+
// When run in a shell we run `init` immediately.
347+
await init();
348+
}
349+
#endif
350+
344351
#else
345352
preInit();
346353
run();

0 commit comments

Comments
 (0)