MakeFunc wraps a function and gives access to the values of JavaScript's "this" and "arguments" keywords.
(fn func(this *Object, arguments []*Object) any)
| 119 | |
| 120 | // MakeFunc wraps a function and gives access to the values of JavaScript's "this" and "arguments" keywords. |
| 121 | func MakeFunc(fn func(this *Object, arguments []*Object) any) *Object { |
| 122 | return Global.Call("$makeFunc", InternalObject(fn)) |
| 123 | } |
| 124 | |
| 125 | // Keys returns the keys of the given JavaScript object. |
| 126 | func Keys(o *Object) []string { |
searching dependent graphs…