summaryrefslogtreecommitdiff
path: root/op_crates/webidl/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'op_crates/webidl/lib.rs')
-rw-r--r--op_crates/webidl/lib.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/op_crates/webidl/lib.rs b/op_crates/webidl/lib.rs
new file mode 100644
index 000000000..7e617c7a7
--- /dev/null
+++ b/op_crates/webidl/lib.rs
@@ -0,0 +1,14 @@
+// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
+
+use deno_core::JsRuntime;
+
+/// Load and execute the javascript code.
+pub fn init(isolate: &mut JsRuntime) {
+ let files = vec![(
+ "deno:op_crates/webidl/00_webidl.js",
+ include_str!("00_webidl.js"),
+ )];
+ for (url, source_code) in files {
+ isolate.execute(url, source_code).unwrap();
+ }
+}