Skip to content

Commit e53ea97

Browse files
committed
Fixed missing references to syscall/js package. It was causing an infinite recurssion.
1 parent 44407bc commit e53ea97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/js/js_js.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ import (
2727
// It returns the number of bytes copied, which will be the minimum of the lengths of src and dst.
2828
// CopyBytesToGo panics if src is not an Uint8Array.
2929
func CopyBytesToGo(dst []byte, src Value) int {
30-
return CopyBytesToGo(dst, src)
30+
return js.CopyBytesToGo(dst, src)
3131
}
3232

3333
// CopyBytesToJS copies bytes from src to the Uint8Array dst.
3434
// It returns the number of bytes copied, which will be the minimum of the lengths of src and dst.
3535
// CopyBytesToJS panics if dst is not an Uint8Array.
3636
func CopyBytesToJS(dst Value, src []byte) int {
37-
return CopyBytesToJS(dst, src)
37+
return js.CopyBytesToJS(dst, src)
3838
}
3939

4040
// Error wraps a JavaScript error.

0 commit comments

Comments
 (0)