Files
kotlin-fork/js/js.translator/testData/box/polyfills/globalThis/globalThisWithExistedIntrinsic.kt
T

13 lines
317 B
Kotlin
Vendored

// !LANGUAGE: +JsAllowInvalidCharsIdentifiersEscaping
// TARGET_BACKEND: JS_IR
// FILE: main.js
this.globalThis = { "Is Just Created Global This": true }
// FILE: main.kt
external val `Is Just Created Global This`: Boolean
fun box(): String {
assertEquals(`Is Just Created Global This`, true)
return "OK"
}