From 03dc3b8972f460e40d0b75fc3207cae9fe4f60da Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Fri, 22 Jul 2022 17:54:22 +0530 Subject: feat(ops): V8 Fast Calls (#15122) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartek IwaƄczuk --- core/01_core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/01_core.js') 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) { -- cgit v1.2.3