summaryrefslogtreecommitdiff
path: root/core/examples/ts_module_loader.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-05-05 13:16:25 +0200
committerGitHub <noreply@github.com>2022-05-05 13:16:25 +0200
commit45a4d75296b221240a2842bae0aef21622e21f97 (patch)
treea0af348a54099f9dd2b2be34c1e071375bc99d6d /core/examples/ts_module_loader.rs
parent242273e69b5f5add23393e8e96e241696eae88fb (diff)
refactor(core): use Box<u8> for ModuleSource.code instead of a String (#14487)
Diffstat (limited to 'core/examples/ts_module_loader.rs')
-rw-r--r--core/examples/ts_module_loader.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/examples/ts_module_loader.rs b/core/examples/ts_module_loader.rs
index 963533ffc..68ee06e60 100644
--- a/core/examples/ts_module_loader.rs
+++ b/core/examples/ts_module_loader.rs
@@ -80,7 +80,7 @@ impl ModuleLoader for TypescriptModuleLoader {
code
};
let module = ModuleSource {
- code,
+ code: code.into_bytes().into_boxed_slice(),
module_type,
module_url_specified: module_specifier.to_string(),
module_url_found: module_specifier.to_string(),