summaryrefslogtreecommitdiff
path: root/core/01_core.js
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@gmail.com>2021-08-19 17:19:00 +0200
committerGitHub <noreply@github.com>2021-08-19 17:19:00 +0200
commitbfc197f33e7df6f3c1a882d70c48ae742e04e288 (patch)
tree4865ebbdcdd387d560c7528056ad2506fd93736b /core/01_core.js
parent37c983d1e8e83fd2b381028d37f6358df1fa4513 (diff)
cleanup(core): rename handleAsyncMsgFromRust() to opresolve() (#11774)
No user impact, but is simpler and aligns with `opcall()`
Diffstat (limited to 'core/01_core.js')
-rw-r--r--core/01_core.js4
1 files changed, 2 insertions, 2 deletions
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,