summaryrefslogtreecommitdiff
path: root/runtime/js/11_workers.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js/11_workers.js')
-rw-r--r--runtime/js/11_workers.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/runtime/js/11_workers.js b/runtime/js/11_workers.js
index 5660b291c..c917a2880 100644
--- a/runtime/js/11_workers.js
+++ b/runtime/js/11_workers.js
@@ -38,8 +38,6 @@
return core.opAsync("op_host_get_message", id);
}
- const decoder = new TextDecoder();
-
/**
* @param {string} permission
* @return {boolean}
@@ -166,7 +164,7 @@
this.#name = name;
const hasSourceCode = false;
- const sourceCode = decoder.decode(new Uint8Array());
+ const sourceCode = core.decode(new Uint8Array());
if (
specifier.startsWith("./") || specifier.startsWith("../") ||