diff options
author | Valentin Anger <syrupthinker@gryphno.de> | 2020-06-01 20:20:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-01 14:20:47 -0400 |
commit | becbb56b19e96e4dd72b861217a855fba953d290 (patch) | |
tree | d9e99771c537ef87a4a945f0120775c337ef90aa /cli/ops/process.rs | |
parent | 12d741c2fe453625d510313beaa2e1c282784c00 (diff) |
feat(core): Ops can take several zero copy buffers (#4788)
Diffstat (limited to 'cli/ops/process.rs')
-rw-r--r-- | cli/ops/process.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/ops/process.rs b/cli/ops/process.rs index eefabd49f..78d9313c0 100644 --- a/cli/ops/process.rs +++ b/cli/ops/process.rs @@ -64,7 +64,7 @@ fn op_run( isolate_state: &mut CoreIsolateState, state: &State, args: Value, - _zero_copy: Option<ZeroCopyBuf>, + _zero_copy: &mut [ZeroCopyBuf], ) -> Result<JsonOp, OpError> { let run_args: RunArgs = serde_json::from_value(args)?; @@ -178,7 +178,7 @@ fn op_run_status( isolate_state: &mut CoreIsolateState, state: &State, args: Value, - _zero_copy: Option<ZeroCopyBuf>, + _zero_copy: &mut [ZeroCopyBuf], ) -> Result<JsonOp, OpError> { let args: RunStatusArgs = serde_json::from_value(args)?; let rid = args.rid as u32; @@ -228,7 +228,7 @@ struct KillArgs { fn op_kill( state: &State, args: Value, - _zero_copy: Option<ZeroCopyBuf>, + _zero_copy: &mut [ZeroCopyBuf], ) -> Result<JsonOp, OpError> { state.check_unstable("Deno.kill"); state.check_run()?; |