From 60b53fd6b6dc2af83a64c332b9f3a1926f43d631 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Tue, 21 Jan 2020 01:30:30 +1100 Subject: Use globalThis to reference global scope (#3719) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartek IwaƄczuk --- deno_typescript/lib.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'deno_typescript/lib.rs') diff --git a/deno_typescript/lib.rs b/deno_typescript/lib.rs index 779e6fd70..370079fa1 100644 --- a/deno_typescript/lib.rs +++ b/deno_typescript/lib.rs @@ -146,7 +146,7 @@ pub fn compile_bundle( }, }); - let mut root_names_str: Vec = root_names + let root_names_str: Vec = root_names .iter() .map(|p| { if !p.exists() { @@ -158,7 +158,6 @@ pub fn compile_bundle( module_specifier.as_str().to_string() }) .collect(); - root_names_str.push("$asset$/lib.deno_core.d.ts".to_string()); // TODO lift js_check to caller? let state = js_check(ts_isolate.compile(&config_json, root_names_str)); @@ -267,9 +266,6 @@ pub fn get_asset(name: &str) -> Option { "bundle_loader.js" => { Some(read_file("../deno_typescript/bundle_loader.js")) } - "lib.deno_core.d.ts" => { - Some(read_file("../deno_typescript/lib.deno_core.d.ts")) - } "lib.deno_runtime.d.ts" => Some(read_file("js/lib.deno_runtime.d.ts")), "bootstrap.ts" => Some("console.log(\"hello deno\");".to_string()), "typescript.d.ts" => inc!("typescript.d.ts"), -- cgit v1.2.3