summaryrefslogtreecommitdiff
path: root/deno_typescript/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'deno_typescript/lib.rs')
-rw-r--r--deno_typescript/lib.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/deno_typescript/lib.rs b/deno_typescript/lib.rs
index c503d3508..016adcca0 100644
--- a/deno_typescript/lib.rs
+++ b/deno_typescript/lib.rs
@@ -203,10 +203,6 @@ pub fn mksnapshot_bundle_ts(
state: Arc<Mutex<TSState>>,
) -> Result<(), ErrBox> {
let runtime_isolate = &mut Isolate::new(StartupData::None, true);
- runtime_isolate.register_op(
- "fetch_asset",
- compiler_op(state.clone(), ops::json_op(ops::fetch_asset)),
- );
let source_code_vec = std::fs::read(bundle)?;
let source_code = std::str::from_utf8(&source_code_vec)?;
@@ -259,10 +255,6 @@ pub fn get_asset(name: &str) -> Option<&'static str> {
}
match name {
"bundle_loader.js" => Some(include_str!("bundle_loader.js")),
- "lib.deno_runtime.d.ts" => {
- Some(include_str!("../cli/js/lib.deno_runtime.d.ts"))
- }
- "bootstrap.ts" => Some("console.log(\"hello deno\");"),
"typescript.d.ts" => inc!("typescript.d.ts"),
"lib.esnext.d.ts" => inc!("lib.esnext.d.ts"),
"lib.es2020.d.ts" => inc!("lib.es2020.d.ts"),