summaryrefslogtreecommitdiff
path: root/cli/tsc.rs
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2020-10-14 10:52:49 +1100
committerGitHub <noreply@github.com>2020-10-14 10:52:49 +1100
commit10654fa95553866c63a56a7f84c7ec47fb7aac9c (patch)
tree011b6f67259db903cda6bf61d439fdeec588835d /cli/tsc.rs
parent374d433f1f4885686dc5c166be3a25c839e22959 (diff)
refactor(cli): add tsc2 (#7942)
Ref #7225
Diffstat (limited to 'cli/tsc.rs')
-rw-r--r--cli/tsc.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tsc.rs b/cli/tsc.rs
index 24511fe6a..02ca9d59e 100644
--- a/cli/tsc.rs
+++ b/cli/tsc.rs
@@ -417,7 +417,7 @@ impl TsCompiler {
{
let existing_hash = crate::checksum::gen(&[
&source_file.source_code.as_bytes(),
- version::DENO.as_bytes(),
+ &version::DENO.as_bytes(),
]);
let expected_hash =
file_info["version"].as_str().unwrap().to_string();
@@ -988,7 +988,7 @@ fn execute_in_tsc(
}
let bootstrap_script = format!(
- "globalThis.bootstrapCompilerRuntime({{ debugFlag: {} }})",
+ "globalThis.startup({{ debugFlag: {}, legacy: true }})",
debug_flag
);
js_runtime.execute("<compiler>", &bootstrap_script)?;