JS: Rewrite RegExpMatch without @nativeGetter

This commit is contained in:
Ilya Gorbunov
2017-01-25 20:08:36 +03:00
parent 03019dc638
commit 387564d140
+1 -3
View File
@@ -44,10 +44,8 @@ public external interface RegExpMatch {
public val index: Int
public val input: String
public val length: Int
@nativeGetter
public operator fun get(index: Int): String?
}
public inline operator fun RegExpMatch.get(index: Int): String? = asDynamic()[index]
public inline fun RegExpMatch.asArray(): Array<out String?> = unsafeCast<Array<out String?>>()