temp workaround changed goja nil map behavior

This commit is contained in:
Gani Georgiev committed 2026-10-22 14:55:34 +03:00
1 parent 8ad3728b87
commit abd1254d4d
1 file changed
+2 -1
+2 -1
View File
@@ -465,7 +465,8 @@ func BindCore(vm *goja.Runtime) {
return &v
})
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
})