Skip to content
This repository was archived by the owner on Apr 30, 2019. It is now read-only.

Commit d42f58b

Browse files
authored
Bug fix: ValueOf should not accept []byte (#15)
1 parent c2ef749 commit d42f58b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/js_notwasm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func ValueOf(x interface{}) Value {
120120
return x.Value
121121
case nil:
122122
return Null()
123-
case bool, int, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64, float32, float64, unsafe.Pointer, string, []byte:
123+
case bool, int, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64, float32, float64, unsafe.Pointer, string:
124124
return Value{v: id.Invoke(x)}
125125
default:
126126
panic(`invalid arg: ` + reflect.TypeOf(x).String())

0 commit comments

Comments
 (0)