summaryrefslogtreecommitdiff
path: root/core/core.js
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@gmail.com>2021-05-18 13:43:21 +0200
committerGitHub <noreply@github.com>2021-05-18 13:43:21 +0200
commit21d62b9b9ed7b4cd375a2815bdd9d8ccaa85e537 (patch)
treed4ec32b676dfa307abb4fc01b418eb17137e965c /core/core.js
parent12bfdef62ce0e10dec4999a88055d2358c983285 (diff)
cleanup(core.js): make op wrapper arg names generic (#10675)
These bits were missed in #10448.
Diffstat (limited to 'core/core.js')
-rw-r--r--core/core.js8
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() {