diff options
Diffstat (limited to 'runtime/worker.rs')
-rw-r--r-- | runtime/worker.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/worker.rs b/runtime/worker.rs index 04c294146..543eae6f6 100644 --- a/runtime/worker.rs +++ b/runtime/worker.rs @@ -191,7 +191,8 @@ impl MainWorker { 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. |