From 387564d1402029d02e086898acd2b7f892fd63ab Mon Sep 17 00:00:00 2001 From: Ilya Gorbunov Date: Wed, 25 Jan 2017 20:08:36 +0300 Subject: [PATCH] JS: Rewrite RegExpMatch without @nativeGetter --- js/js.libraries/src/core/regexp.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/js.libraries/src/core/regexp.kt b/js/js.libraries/src/core/regexp.kt index 8b6e8145842..dce3291f7f4 100644 --- a/js/js.libraries/src/core/regexp.kt +++ b/js/js.libraries/src/core/regexp.kt @@ -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 = unsafeCast>() \ No newline at end of file