diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-01-22 20:18:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-22 20:18:01 +0100 |
commit | bd9561f4de8f940ce6ed8b5eedfa84161a749c54 (patch) | |
tree | 20bc23c294aa3031fe4729dc09e03351ec6097f4 /cli/js.rs | |
parent | 3c47718959fb38d51e34c64d423151b5326bae3a (diff) |
Reland "Create an old program to be used in snapshot." (#3747)
* read CLI assets from disk during snapshotting
Diffstat (limited to 'cli/js.rs')
-rw-r--r-- | cli/js.rs | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -16,15 +16,7 @@ pub static COMPILER_SNAPSHOT_MAP: &[u8] = pub static COMPILER_SNAPSHOT_DTS: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/COMPILER_SNAPSHOT.d.ts")); -static DENO_RUNTIME: &str = include_str!("js/lib.deno_runtime.d.ts"); - -/// Same as deno_typescript::get_asset but also has lib.deno_runtime.d.ts -pub fn get_asset(name: &str) -> Option<&'static str> { - match name { - "lib.deno_runtime.d.ts" => Some(DENO_RUNTIME), - _ => deno_typescript::get_asset(name), - } -} +pub static DENO_RUNTIME: &str = include_str!("js/lib.deno_runtime.d.ts"); #[test] fn cli_snapshot() { |