Skip to content

Commit 3f3c4a0

Browse files
author
Chan Wen Xu
committed
fix: Remove js.Wrapper
This commit removes references to js.Wrapper as js.Wrapper has been removed as part of golang/go#50310. Fixes #12.
1 parent 285babe commit 3f3c4a0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

wasm/reflect_to.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ func ToJSValue(x interface{}) js.Value {
3131
switch x := x.(type) {
3232
case js.Value:
3333
return x
34-
case js.Wrapper:
35-
return x.JSValue()
3634
case bool, int, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64, uintptr,
3735
unsafe.Pointer, float32, float64, string:
3836
return js.ValueOf(x)

0 commit comments

Comments
 (0)