🎉 Commit of go-promises

This commit is contained in:
Dan Jones 2024-12-27 15:19:49 -06:00
commit 5d84d26c3a
Signed by: dan
GPG key ID: 5B3B0F7217473A29
13 changed files with 238 additions and 0 deletions

8
new.go Normal file
View file

@ -0,0 +1,8 @@
package promises
import "syscall/js"
func NewGlobal(thing string, args ...any) js.Value {
newThing := js.Global().Get(thing)
return newThing.New(args...)
}