summaryrefslogtreecommitdiff
path: root/core/runtime.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-03-18 16:09:13 -0400
committerGitHub <noreply@github.com>2023-03-18 20:09:13 +0000
commitd33369c6c737718e02d61ae1b3a3231896d5a9b1 (patch)
tree10c55cce5e347293cb644e086fdd57aa33e8427b /core/runtime.rs
parent4c1f3daa837932ec149b445468b95505f4775ef3 (diff)
perf(core): use static specifier in ExtensionFileSource (#18271)
Relanding #18264 ------- Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
Diffstat (limited to 'core/runtime.rs')
-rw-r--r--core/runtime.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/runtime.rs b/core/runtime.rs
index 0531e861c..a08e65134 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()?,
)?;
}