[JS IR] Don't forget to enable lazy property initialization
This commit is contained in:
committed by
Space Team
parent
cdbfcdc465
commit
6a40a7e471
@@ -161,7 +161,7 @@ class JsIrBackendContext(
|
||||
override val reflectionSymbols: ReflectionSymbols get() = intrinsics.reflectionSymbols
|
||||
|
||||
override val propertyLazyInitialization: PropertyLazyInitialization = PropertyLazyInitialization(
|
||||
enabled = configuration.getBoolean(JSConfigurationKeys.PROPERTY_LAZY_INITIALIZATION),
|
||||
enabled = configuration.get(JSConfigurationKeys.PROPERTY_LAZY_INITIALIZATION, true),
|
||||
eagerInitialization = symbolTable.referenceClass(getJsInternalClass("EagerInitialization"))
|
||||
)
|
||||
|
||||
|
||||
+1
@@ -2,6 +2,7 @@
|
||||
// FIR status: not supported in JVM
|
||||
// IGNORE_BACKEND: JVM, JVM_IR
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: LAZY_INIT_PROPERTIES
|
||||
// IGNORE_LIGHT_ANALYSIS
|
||||
|
||||
+1
-1
@@ -19,4 +19,4 @@ val o = object : I {
|
||||
}
|
||||
|
||||
// LINES(JS): 1 2 3 2 2 2 2 2 2 2 * 11 12 12 12 15 15 15 16 18 17 17
|
||||
// LINES(JS_IR): 11 11 11 11 * 1 1 3 3 1 1 1 1 1 1 1 1 1 5 11 11 12 12 12 16 17 17 15 15 15 11 11
|
||||
// LINES(JS_IR): 11 11 * 11 11 * 1 1 3 3 1 1 1 1 1 1 1 1 1 5 11 11 12 12 12 16 17 17 15 15 15 * 11
|
||||
|
||||
Reference in New Issue
Block a user