mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 23:34:47 -05:00
cleanup(core.js): make op wrapper arg names generic (#10675)
These bits were missed in #10448.
This commit is contained in:
parent
12bfdef62c
commit
21d62b9b9e
1 changed files with 4 additions and 4 deletions
|
@ -108,16 +108,16 @@
|
|||
return res;
|
||||
}
|
||||
|
||||
function opAsync(opName, args = null, zeroCopy = null) {
|
||||
function opAsync(opName, arg1 = null, arg2 = null) {
|
||||
const promiseId = nextPromiseId++;
|
||||
const maybeError = dispatch(opName, promiseId, args, zeroCopy);
|
||||
const maybeError = dispatch(opName, promiseId, arg1, arg2);
|
||||
// Handle sync error (e.g: error parsing args)
|
||||
if (maybeError) return unwrapOpResult(maybeError);
|
||||
return setPromise(promiseId).then(unwrapOpResult);
|
||||
}
|
||||
|
||||
function opSync(opName, args = null, zeroCopy = null) {
|
||||
return unwrapOpResult(dispatch(opName, null, args, zeroCopy));
|
||||
function opSync(opName, arg1 = null, arg2 = null) {
|
||||
return unwrapOpResult(dispatch(opName, null, arg1, arg2));
|
||||
}
|
||||
|
||||
function resources() {
|
||||
|
|
Loading…
Reference in a new issue