diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2022-07-22 17:54:22 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-22 17:54:22 +0530 |
commit | 03dc3b8972f460e40d0b75fc3207cae9fe4f60da (patch) | |
tree | 410bc92530e34ca2eee8a154f705be85ae9641b3 /core/01_core.js | |
parent | 244c00d95b7ec8f30a5e81b743b4b618049b6c37 (diff) |
feat(ops): V8 Fast Calls (#15122)
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'core/01_core.js')
-rw-r--r-- | core/01_core.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/01_core.js b/core/01_core.js index 21376b695..354540fb7 100644 --- a/core/01_core.js +++ b/core/01_core.js @@ -147,7 +147,7 @@ function opAsync(opName, ...args) { const promiseId = nextPromiseId++; - const maybeError = ops[opName](promiseId, ...args); + const maybeError = ops[opName].call(promiseId, ...args); // Handle sync error (e.g: error parsing args) if (maybeError) return unwrapOpResult(maybeError); let p = PromisePrototypeThen(setPromise(promiseId), unwrapOpResult); @@ -167,7 +167,7 @@ } function opSync(opName, ...args) { - return unwrapOpResult(ops[opName](...args)); + return unwrapOpResult(ops[opName].call(...args)); } function refOp(promiseId) { |