refactor(ops): replace ZeroCopyBuf arg by 2nd generic deserializable arg (#10448)

This commit is contained in:
Aaron O'Mullan 2021-05-06 19:32:03 +02:00 committed by GitHub
parent f208e6a26f
commit 1e8e44f4c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 88 additions and 114 deletions

View file

@ -156,7 +156,7 @@ fn create_compiler_snapshot(
});
js_runtime.register_op(
"op_build_info",
op_sync(move |_state, _args: Value, _bufs| {
op_sync(move |_state, _args: Value, _: ()| {
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",
op_sync(move |_state, args, _bufs| {
op_sync(move |_state, args, _: ()| {
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 {