From 7c2e7c660804afca823d60e6496aa853f75db16c Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 10 Sep 2020 09:57:45 -0400 Subject: Use gotham-like state for ops (#7385) Provides a concrete state type that can be dynamically added. This is necessary for op crates. * renames BasicState to OpState * async ops take `Rc>` * sync ops take `&mut OpState` * removes `OpRegistry`, `OpRouter` traits * `get_error_class_fn` moved to OpState * ResourceTable moved to OpState --- cli/js.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'cli/js.rs') diff --git a/cli/js.rs b/cli/js.rs index 6e6767873..2dc56710d 100644 --- a/cli/js.rs +++ b/cli/js.rs @@ -14,7 +14,6 @@ pub static UNSTABLE_NS_LIB: &str = include_str!("dts/lib.deno.unstable.d.ts"); #[test] fn cli_snapshot() { let mut isolate = deno_core::JsRuntime::new( - deno_core::BasicState::new(), deno_core::StartupData::Snapshot(deno_core::Snapshot::Static(CLI_SNAPSHOT)), false, ); @@ -32,7 +31,6 @@ fn cli_snapshot() { #[test] fn compiler_snapshot() { let mut isolate = deno_core::JsRuntime::new( - deno_core::BasicState::new(), deno_core::StartupData::Snapshot(deno_core::Snapshot::Static( COMPILER_SNAPSHOT, )), -- cgit v1.2.3