summaryrefslogtreecommitdiff
path: root/runtime/web_worker.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/web_worker.rs')
-rw-r--r--runtime/web_worker.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/web_worker.rs b/runtime/web_worker.rs
index f8aadf4c2..1fcd57dc2 100644
--- a/runtime/web_worker.rs
+++ b/runtime/web_worker.rs
@@ -427,7 +427,8 @@ impl WebWorker {
name: &str,
source_code: &str,
) -> Result<(), AnyError> {
- self.js_runtime.execute_script(name, source_code)
+ self.js_runtime.execute_script(name, source_code)?;
+ Ok(())
}
/// Loads and instantiates specified JavaScript module.