mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-24 06:50:25 +02:00
updated jsvm types
This commit is contained in:
1 parent
262e78c04e
commit
c8776b7cd9
4 files changed
+3031
-3019
No files matched your search
@@ -313,7 +313,7 @@ func baseBinds(vm *goja.Runtime) {
|
||||
vm.Set("toBytes", func(raw any, maxReaderBytes int) ([]byte, error) {
|
||||
switch v := raw.(type) {
|
||||
case nil:
|
||||
return nil, nil
|
||||
return []byte{}, nil
|
||||
case string:
|
||||
return []byte(v), nil
|
||||
case []byte:
|
||||
|
||||
Reference in new issue
Block a user