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

Function newConsole

internal/scripting/console.go:26–35  ·  view source on GitHub ↗
(vm *goja.Runtime)

Source from the content-addressed store, hash-verified

24}
25
26func newConsole(vm *goja.Runtime) *goja.Object {
27 c := &console{}
28 obj := vm.NewObject()
29 obj.Set(`log`, c.log)
30 obj.Set(`info`, c.info)
31 obj.Set(`debug`, c.debug)
32 obj.Set(`warn`, c.warn)
33 obj.Set(`error`, c.error)
34 return obj
35}

Callers 1

setMessagingFunctionsFunction · 0.85

Calls 1

SetMethod · 0.65

Tested by

no test coverage detected