MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / newVMWrapper

Function newVMWrapper

internal/scripting/vmwrapper.go:25–27  ·  view source on GitHub ↗
(vm *goja.Runtime, cacheSize int)

Source from the content-addressed store, hash-verified

23}
24
25func newVMWrapper(vm *goja.Runtime, cacheSize int) *VMWrapper {
26 return &VMWrapper{VM: vm, callableCache: make(map[string]goja.Callable, cacheSize), maxCacheSize: cacheSize}
27}
28
29func (vmw *VMWrapper) GetFunction(name string) (goja.Callable, bool) {
30

Calls

no outgoing calls