1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-11-25 23:52:32 +02:00

[#3447] added jsvm http.Cookie binding

This commit is contained in:
Gani Georgiev
2023-10-07 15:35:20 +03:00
parent 6d672348e7
commit 49e3f4ad93
4 changed files with 3034 additions and 2931 deletions

View File

@@ -412,6 +412,11 @@ func baseBinds(vm *goja.Runtime) {
return instanceValue
})
vm.Set("Cookie", func(call goja.ConstructorCall) *goja.Object {
instance := &http.Cookie{}
return structConstructor(vm, call, instance)
})
}
func dbxBinds(vm *goja.Runtime) {