summaryrefslogtreecommitdiff
path: root/runtime/js/99_main.js
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2023-02-24 01:20:15 +0530
committerGitHub <noreply@github.com>2023-02-23 19:50:15 +0000
commitda781280b8422b4116473b366fb7d207909a31da (patch)
treebef59ac9dd8e26d97d7d494de87d53ab537724cc /runtime/js/99_main.js
parent4773d07974167b565ba84d5603a6d6f70cd12660 (diff)
fix(core): remove async op inlining optimization (#17899)
Runtime generation of async op wrappers contributed to increased startup time and core became unusable with `--disallow-code-generation-from-strings` flag. The optimization only affects very small microbenchmarks so this revert will not cause any regressions.
Diffstat (limited to 'runtime/js/99_main.js')
-rw-r--r--runtime/js/99_main.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js
index da5b5f1b8..ffb479c32 100644
--- a/runtime/js/99_main.js
+++ b/runtime/js/99_main.js
@@ -390,7 +390,6 @@ function bootstrapMainRuntime(runtimeOptions) {
throw new Error("Worker runtime already bootstrapped");
}
- core.initializeAsyncOps();
performance.setTimeOrigin(DateNow());
globalThis_ = globalThis;
@@ -523,7 +522,6 @@ function bootstrapWorkerRuntime(
throw new Error("Worker runtime already bootstrapped");
}
- core.initializeAsyncOps();
performance.setTimeOrigin(DateNow());
globalThis_ = globalThis;