diff options
Diffstat (limited to 'op_crates/web/lib.rs')
-rw-r--r-- | op_crates/web/lib.rs | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/op_crates/web/lib.rs b/op_crates/web/lib.rs deleted file mode 100644 index a2612743e..000000000 --- a/op_crates/web/lib.rs +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. - -use deno_core::include_js_files; -use deno_core::Extension; -use std::path::PathBuf; - -/// Load and execute the javascript code. -pub fn init() -> Extension { - Extension::builder() - .js(include_js_files!( - prefix "deno:op_crates/web", - "00_infra.js", - "01_dom_exception.js", - "01_mimesniff.js", - "02_event.js", - "03_abort_signal.js", - "04_global_interfaces.js", - "08_text_encoding.js", - "12_location.js", - )) - .build() -} - -pub fn get_declaration() -> PathBuf { - PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("lib.deno_web.d.ts") -} |