From bfc197f33e7df6f3c1a882d70c48ae742e04e288 Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Thu, 19 Aug 2021 17:19:00 +0200 Subject: cleanup(core): rename handleAsyncMsgFromRust() to opresolve() (#11774) No user impact, but is simpler and aligns with `opcall()` --- 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 74e00b5df..b1497c934 100644 --- a/core/01_core.js +++ b/core/01_core.js @@ -88,7 +88,7 @@ opsCache = ObjectFreeze(ObjectFromEntries(opcall(0))); } - function handleAsyncMsgFromRust() { + function opresolve() { for (let i = 0; i < arguments.length; i += 2) { const promiseId = arguments[i]; const res = arguments[i + 1]; @@ -179,7 +179,7 @@ resources, registerErrorBuilder, registerErrorClass, - handleAsyncMsgFromRust, + opresolve, syncOpsCache, BadResource, Interrupted, -- cgit v1.2.3