diff options
Diffstat (limited to 'cli/build.rs')
| -rw-r--r-- | cli/build.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/build.rs b/cli/build.rs index 1b1e913d2..930ba376f 100644 --- a/cli/build.rs +++ b/cli/build.rs @@ -1,7 +1,7 @@ // Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. use deno_core::error::custom_error; -use deno_core::json_op_sync; +use deno_core::op_sync; use deno_core::serde::Deserialize; use deno_core::serde_json; use deno_core::serde_json::json; @@ -156,7 +156,7 @@ fn create_compiler_snapshot( }); js_runtime.register_op( "op_build_info", - json_op_sync(move |_state, _args: Value, _bufs| { + op_sync(move |_state, _args: Value, _bufs| { Ok(json!({ "buildSpecifier": build_specifier, "libs": build_libs, @@ -167,7 +167,7 @@ fn create_compiler_snapshot( // files, but a slightly different implementation at build time. js_runtime.register_op( "op_load", - json_op_sync(move |_state, args, _bufs| { + op_sync(move |_state, args, _bufs| { let v: LoadArgs = serde_json::from_value(args)?; // we need a basic file to send to tsc to warm it up. if v.specifier == build_specifier { |
