diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-09-06 21:44:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-06 21:44:29 +0200 |
commit | f57a2c1e85387afe48b7bdb57176dafb156bb86e (patch) | |
tree | c198f7c965a883acacc9c1410c620d6290cd43ef /core/examples/http_bench_json_ops.rs | |
parent | 16a9c92aba9ba8376393d6df4fa9677ac6113578 (diff) |
refactor(core): rename CoreIsolate to JsRuntime (#7373)
deno_core/
- rename core_isolate.rs to runtime.rs
- rename CoreIsolate to JsRuntime
- rename JSError to JsError
- rename JSStackFrame to JsStackFrame
cli/
- update references from deno_core::CoreIsolate to deno_core::JsRuntime
- rename deno_core::JSError to deno_core::JsError
- rename fmt_errors::JSError to fmt_errors::JsError
Diffstat (limited to 'core/examples/http_bench_json_ops.rs')
-rw-r--r-- | core/examples/http_bench_json_ops.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/examples/http_bench_json_ops.rs b/core/examples/http_bench_json_ops.rs index 6e3063a0f..de467b8ad 100644 --- a/core/examples/http_bench_json_ops.rs +++ b/core/examples/http_bench_json_ops.rs @@ -4,8 +4,8 @@ extern crate log; use deno_core::js_check; use deno_core::BasicState; use deno_core::BufVec; -use deno_core::CoreIsolate; use deno_core::ErrBox; +use deno_core::JsRuntime; use deno_core::OpRegistry; use deno_core::Script; use deno_core::StartupData; @@ -41,7 +41,7 @@ impl log::Log for Logger { fn flush(&self) {} } -fn create_isolate() -> CoreIsolate { +fn create_isolate() -> JsRuntime { let state = BasicState::new(); state.register_op_json_sync("listen", op_listen); state.register_op_json_sync("close", op_close); @@ -54,7 +54,7 @@ fn create_isolate() -> CoreIsolate { filename: "http_bench_json_ops.js", }); - CoreIsolate::new(state, startup_data, false) + JsRuntime::new(state, startup_data, false) } fn op_listen( |