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