[#3447] added jsvm http.Cookie binding

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

No files matched your search

+5
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) {