diff options
author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2021-05-18 13:43:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-18 13:43:21 +0200 |
commit | 21d62b9b9ed7b4cd375a2815bdd9d8ccaa85e537 (patch) | |
tree | d4ec32b676dfa307abb4fc01b418eb17137e965c | |
parent | 12bfdef62ce0e10dec4999a88055d2358c983285 (diff) |
cleanup(core.js): make op wrapper arg names generic (#10675)
These bits were missed in #10448.
-rw-r--r-- | core/core.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/core.js b/core/core.js index 32ff7758e..8e06a3e45 100644 --- a/core/core.js +++ b/core/core.js @@ -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() { |