File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
libraries/stdlib/js/src/kotlin/reflect Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 6
6
package kotlin.reflect.js.internal
7
7
8
8
import kotlin.internal.UsedFromCompilerGeneratedCode
9
- import kotlin.js.JsClass
10
9
import kotlin.js.internal.BigInt
11
10
12
11
@JsName(" PrimitiveClasses" )
@@ -34,7 +33,8 @@ internal object PrimitiveClasses {
34
33
val intClass = PrimitiveKClassImpl (js(" Number" ).unsafeCast<JsClass <Int >>(), " Int" , { it is Int })
35
34
36
35
@JsName(" longClass" )
37
- val longClass = PrimitiveKClassImpl (BigInt .unsafeCast<JsClass <Long >>(), " Long" , { it is Long })
36
+ val longClass =
37
+ PrimitiveKClassImpl ((if (jsTypeOf(BigInt ) == " undefined" ) VOID else BigInt ).unsafeCast<JsClass <Long >>(), " Long" , { it is Long })
38
38
39
39
@JsName(" floatClass" )
40
40
val floatClass = PrimitiveKClassImpl (js(" Number" ).unsafeCast<JsClass <Float >>(), " Float" , { it is Float })
You can’t perform that action at this time.
0 commit comments