File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
libraries/stdlib/js/src/kotlin/reflect Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,11 @@ internal object PrimitiveClasses {
66
66
@JsName(" intArrayClass" )
67
67
val intArrayClass = PrimitiveKClassImpl (js(" Int32Array" ).unsafeCast<JsClass <IntArray >>(), " IntArray" , { it is IntArray })
68
68
69
- @JsName(" longArrayClass" )
70
- val longArrayClass = PrimitiveKClassImpl (js(" Array" ).unsafeCast<JsClass <LongArray >>(), " LongArray" , { it is LongArray })
69
+ // NOTE: The PrimitiveKClassImpl instance for LongArray is initialized in either kotlin.js.internal.longAsBigInt or
70
+ // kotlin.js.internal.boxedLong package, depending on whether compiling Long as BigInt is enabled.
71
+ // TODO(KT-70480): Uncomment this after we drop all ES editions except the latest.
72
+ // @JsName("longArrayClass")
73
+ // val longArrayClass = PrimitiveKClassImpl(js("BigInt64Array").unsafeCast<JsClass<LongArray>>(), "LongArray", { it is LongArray })
71
74
72
75
@JsName(" floatArrayClass" )
73
76
val floatArrayClass = PrimitiveKClassImpl (js(" Float32Array" ).unsafeCast<JsClass <FloatArray >>(), " FloatArray" , { it is FloatArray })
You can’t perform that action at this time.
0 commit comments