[JS IR] stdlib: Fix bugs in Long.toString(radix)

This commit is contained in:
Svyatoslav Kuzmich
2019-05-05 18:54:33 +03:00
parent bc29a5b15c
commit e3bcabeae3
6 changed files with 36 additions and 13 deletions
@@ -0,0 +1,14 @@
/*
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package kotlin.text
/**
* Returns a string representation of this [Long] value in the specified [radix].
*
* @throws IllegalArgumentException when [radix] is not a valid radix for number to string conversion.
*/
@SinceKotlin("1.2")
public actual fun Long.toString(radix: Int): String = asDynamic().toString(checkRadix(radix))