cleanup(core): rename handleAsyncMsgFromRust() to opresolve() (#11774)

No user impact, but is simpler and aligns with `opcall()`
This commit is contained in:
Aaron O'Mullan 2021-08-19 17:19:00 +02:00 committed by GitHub
parent 37c983d1e8
commit bfc197f33e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 6 deletions

View file

@ -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,