feat(Escaped Identifiers): add ability to use any symbol wrapped in back ticks.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// IGNORE_BACKEND: JS
|
||||
// !LANGUAGE: +JsAllowInvalidCharsIdentifiersEscaping
|
||||
|
||||
package foo
|
||||
|
||||
fun box(): String {
|
||||
val a: dynamic = js("{ \"--invalid--property@\": 42 }")
|
||||
assertEquals(42, a.`--invalid--property@`)
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user