diff options
author | Christian Dürr <102963075+cd-work@users.noreply.github.com> | 2022-06-20 12:40:57 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-20 14:40:57 +0200 |
commit | 94d369ebc65a55bd9fbf378a765c8ed88a4efe2c (patch) | |
tree | fe92d71f9dcffe1244fb2fbf6bc28adbeff7524a /core/examples/fs_module_loader.rs | |
parent | 4cbb2567b502445ef6c13acac64b5f93218db4ba (diff) |
docs: Improve `mod_evaluate` documentation (#14827)
Diffstat (limited to 'core/examples/fs_module_loader.rs')
-rw-r--r-- | core/examples/fs_module_loader.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/examples/fs_module_loader.rs b/core/examples/fs_module_loader.rs index 4b62b5687..cd22e022c 100644 --- a/core/examples/fs_module_loader.rs +++ b/core/examples/fs_module_loader.rs @@ -28,9 +28,9 @@ fn main() -> Result<(), Error> { let future = async move { let mod_id = js_runtime.load_main_module(&main_module, None).await?; - let _ = js_runtime.mod_evaluate(mod_id); + let result = js_runtime.mod_evaluate(mod_id); js_runtime.run_event_loop(false).await?; - Ok(()) + result.await? }; runtime.block_on(future) } |