[Wasm] Rename JsHandle to JsReference
Decision to do this was made at Kotlin/Wasm interop design meeting
This commit is contained in:
committed by
teamcity
parent
7ba8f7cce2
commit
933f47aaf9
@@ -126,8 +126,8 @@ private fun externrefEquals(lhs: ExternalInterfaceType, rhs: ExternalInterfaceTy
|
||||
|
||||
private external fun tryGetOrSetExternrefBox(
|
||||
ref: ExternalInterfaceType,
|
||||
ifNotCached: JsHandle<JsExternalBox>
|
||||
): JsHandle<JsExternalBox>?
|
||||
ifNotCached: JsReference<JsExternalBox>
|
||||
): JsReference<JsExternalBox>?
|
||||
|
||||
@WasmNoOpCast
|
||||
@Suppress("unused")
|
||||
@@ -174,7 +174,7 @@ internal fun externRefToAny(ref: ExternalInterfaceType): Any? {
|
||||
// If we have Null in notNullRef -- return null
|
||||
// If we already have a box -- return it,
|
||||
// otherwise -- remember new box and return it.
|
||||
return tryGetOrSetExternrefBox(ref, JsExternalBox(ref).toJsHandle())
|
||||
return tryGetOrSetExternrefBox(ref, JsExternalBox(ref).toJsReference())
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user