diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2023-03-18 18:44:28 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-18 13:14:28 +0000 |
commit | 8af0c8351935ea7c6c0441055d5164908322c9d6 (patch) | |
tree | a61be71ff9ac5379f8e992927bd096c3e6a0ad8f /core/runtime.rs | |
parent | 5223f3d9b68921179db8cd6b00babd711d4f06ff (diff) |
perf(core): use static specifier in ExtensionFileSource (#18264)
Closes #18085
---------
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'core/runtime.rs')
-rw-r--r-- | core/runtime.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/runtime.rs b/core/runtime.rs index 054c55470..f1aa63f23 100644 --- a/core/runtime.rs +++ b/core/runtime.rs @@ -712,7 +712,7 @@ impl JsRuntime { futures::executor::block_on(async { let id = runtime .load_side_module( - &ModuleSpecifier::parse(&file_source.specifier)?, + &ModuleSpecifier::parse(file_source.specifier)?, None, ) .await?; @@ -748,7 +748,7 @@ impl JsRuntime { // TODO(@AaronO): use JsRuntime::execute_static() here to move src off heap realm.execute_script( self.v8_isolate(), - &file_source.specifier, + file_source.specifier, &file_source.code.load()?, )?; } |