Skip to content

Commit 84f324e

Browse files
committed
Add deprecated parseInt overload without radix parameter to provide better replacement.
1 parent 6db698f commit 84f324e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

js/js.libraries/src/core/core.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ public external fun eval(expr: String): dynamic
99

1010
public external val undefined: Nothing?
1111

12+
@Deprecated("Use toInt() instead.", ReplaceWith("s.toInt()"), level = DeprecationLevel.ERROR)
13+
public external fun parseInt(s: String): Int
14+
1215
@Deprecated("Use toInt(radix) instead.", ReplaceWith("s.toInt(radix)"), level = DeprecationLevel.ERROR)
1316
public external fun parseInt(s: String, radix: Int = definedExternally): Int
1417

0 commit comments

Comments
 (0)