summaryrefslogtreecommitdiff
path: root/op_crates/web/lib.rs
diff options
context:
space:
mode:
authorLuca Casonato <lucacasonato@yahoo.com>2021-04-08 15:05:08 +0200
committerGitHub <noreply@github.com>2021-04-08 15:05:08 +0200
commitc867c1aa476b3f00933be08cbc5f528973e37857 (patch)
tree4966a8a2e853db1c552ec39821a65bc13f927d5a /op_crates/web/lib.rs
parentd2e500e1cf7d27132fee92cc09238e1bc98897c6 (diff)
fix: enable FileReader wpt and align to spec (#10063)
This adds some algorithms from the whatwg mimesniff, whatwg infra, and whatwg encoding specs that FileReader needs to use internally.
Diffstat (limited to 'op_crates/web/lib.rs')
-rw-r--r--op_crates/web/lib.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/op_crates/web/lib.rs b/op_crates/web/lib.rs
index 8ee944d74..a609dc4cd 100644
--- a/op_crates/web/lib.rs
+++ b/op_crates/web/lib.rs
@@ -7,10 +7,18 @@ use std::path::PathBuf;
pub fn init(isolate: &mut JsRuntime) {
let files = vec![
(
+ "deno:op_crates/web/00_infra.js",
+ include_str!("00_infra.js"),
+ ),
+ (
"deno:op_crates/web/01_dom_exception.js",
include_str!("01_dom_exception.js"),
),
(
+ "deno:op_crates/web/01_mimesniff.js",
+ include_str!("01_mimesniff.js"),
+ ),
+ (
"deno:op_crates/web/02_event.js",
include_str!("02_event.js"),
),