summaryrefslogtreecommitdiff
path: root/runtime/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/build.rs')
-rw-r--r--runtime/build.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/build.rs b/runtime/build.rs
index 809e32a76..eb8cc34a6 100644
--- a/runtime/build.rs
+++ b/runtime/build.rs
@@ -42,7 +42,7 @@ mod startup_snapshot {
let parsed = deno_ast::parse_module(ParseParams {
specifier: file_source.specifier.to_string(),
- text_info: SourceTextInfo::from_string(code.take_as_string()),
+ text_info: SourceTextInfo::from_string(code.as_str().to_owned()),
media_type,
capture_tokens: false,
scope_analysis: false,