mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-22 22:10:43 +02:00
temp workaround changed goja nil map behavior
This commit is contained in:
1 parent
8ad3728b87
commit
abd1254d4d
1 file changed
+2
-1
@@ -465,7 +465,8 @@ func BindCore(vm *goja.Runtime) {
|
|||||||
return &v
|
return &v
|
||||||
})
|
})
|
||||||
vm.Set("nullObject", func() *types.JSONMap[any] {
|
vm.Set("nullObject", func() *types.JSONMap[any] {
|
||||||
var v types.JSONMap[any]
|
// cannot be nil because of https://github.com/dop251/goja/issues/822
|
||||||
|
v := types.JSONMap[any]{}
|
||||||
return &v
|
return &v
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user