Skip to content

Commit e30ae1e

Browse files
committed
Add GopherJS wrapper/stub around ParseInt
1 parent 698d025 commit e30ae1e

File tree

1 file changed

+5
-0
lines changed
  • compiler/natives/src/strconv

1 file changed

+5
-0
lines changed

compiler/natives/src/strconv/atoi.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ const (
1212
minInt32 float64 = -1 << 31
1313
)
1414

15+
//gopherjs:keep-original
16+
func ParseInt(s string, base, bitSize int) (i int64, err error) {
17+
return _gopherjs_original_ParseInt(s, base, bitSize)
18+
}
19+
1520
// Atoi returns the result of ParseInt(s, 10, 0) converted to type int.
1621
func Atoi(s string) (int, error) {
1722
const fnAtoi = "Atoi"

0 commit comments

Comments
 (0)