[Wasm] Don't try to lazy-initialize properties with 'definedExternally'
NFC for K/JS since externals live in a separate place
This commit is contained in:
committed by
Space Team
parent
fd67464d14
commit
75d3ae4466
+1
-1
@@ -284,7 +284,7 @@ private fun <T> IrDeclaration.withPersistentSafe(transform: IrDeclaration.() ->
|
||||
|
||||
private fun IrDeclaration.isCompatibleDeclaration(context: JsCommonBackendContext) =
|
||||
correspondingProperty?.let {
|
||||
it.isForLazyInit() && !it.hasAnnotation(context.propertyLazyInitialization.eagerInitialization)
|
||||
!it.isExternal && it.isForLazyInit() && !it.hasAnnotation(context.propertyLazyInitialization.eagerInitialization)
|
||||
} ?: true && withPersistentSafe { origin in compatibleOrigins } == true
|
||||
|
||||
private val compatibleOrigins = listOf(
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
// EXPECTED_REACHABLE_NODES: 1281
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: LAZY_INIT_PROPERTIES
|
||||
package foo
|
||||
|
||||
external interface Chrome {
|
||||
|
||||
Reference in New Issue
Block a user