Edoardo Luppi
11/20/2023, 10:44 AMJsPrimitive
annotation on wrappers, from Seskar. What does it do?turansky
11/20/2023, 10:53 AMSymbol
and BigInt
.
It will correct is/as
operator calls
// Kotlin
a is Symbol
// JS - default
a instanceof Symbol
// JS - with plugin
typeof a === 'symbol'
Edoardo Luppi
11/20/2023, 10:55 AMjsTypeOf(o) == type
in your own function seskar.js.internal.hasType
.
Is this because it's easier to implement the compiler transformation? (instead of building the jsTypeOf(o) == type
expression)turansky
11/20/2023, 11:49 AMIs this because it's easier to implement the compiler transformation?Yes
hasType
will be inlined