Fix deprecations in testData: js semantics.
This commit is contained in:
@@ -39,7 +39,7 @@ val CALEE_NAME = RegExp("""((?:equals|hashCode|toString)[^(]*)""")
|
||||
fun <T> Function0<T>.extractNames(): Array<String> {
|
||||
val names = CALEE_NAME.exec(this.toString(): String)
|
||||
|
||||
if (names == null || names.size != 2) {
|
||||
if (names == null || names.size() != 2) {
|
||||
throw Exception("Cannot extract function name, $names for actual = \"$this\"")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user