mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-30 08:50:26 +01:00
[#3447] added jsvm http.Cookie binding
This commit is contained in:
1 parent
6d672348e7
commit
49e3f4ad93
4 files changed
+3034
-2931
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user