summaryrefslogtreecommitdiff
path: root/op_crates/web/lib.rs
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2020-09-06 02:34:02 +0200
committerGitHub <noreply@github.com>2020-09-06 02:34:02 +0200
commitc821e8f2f1fb8ad5e9eb00854277cafc8c80b2f5 (patch)
treec429a3c2707a4047fb512443a8468b7e15e5730d /op_crates/web/lib.rs
parent849431eb1d112d1f79f4a327830dc1a5bf22dd47 (diff)
Move JSON ops to deno_core (#7336)
Diffstat (limited to 'op_crates/web/lib.rs')
-rw-r--r--op_crates/web/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/op_crates/web/lib.rs b/op_crates/web/lib.rs
index 278748166..674eddbb2 100644
--- a/op_crates/web/lib.rs
+++ b/op_crates/web/lib.rs
@@ -31,6 +31,7 @@ fn get_path(file_name: &str) -> PathBuf {
#[cfg(test)]
mod tests {
use deno_core::js_check;
+ use deno_core::BasicState;
use deno_core::CoreIsolate;
use deno_core::StartupData;
use futures::future::lazy;
@@ -46,7 +47,8 @@ mod tests {
}
fn setup() -> CoreIsolate {
- let mut isolate = CoreIsolate::new(StartupData::None, false);
+ let mut isolate =
+ CoreIsolate::new(BasicState::new(), StartupData::None, false);
crate::init(&mut isolate);
isolate
}