diff options
Diffstat (limited to 'core/core.js')
-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() { |