MCPcopy
hub / github.com/gopherjs/gopherjs / Object

Struct Object

js/js.go:29–29  ·  view source on GitHub ↗

Object is a container for a native JavaScript object. Calls to its methods are treated specially by GopherJS and translated directly to their JavaScript syntax. A nil pointer to Object is equal to JavaScript's "null". Object can not be used as a map key.

Source from the content-addressed store, hash-verified

27
28// Object is a container for a native JavaScript object. Calls to its methods are treated specially by GopherJS and translated directly to their JavaScript syntax. A nil pointer to Object is equal to JavaScript's "null". Object can not be used as a map key.
29type Object struct{ object *Object }
30
31// Get returns the object's property with the given key.
32func (o *Object) Get(key string) *Object { return o.object.Get(key) }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected