MCPcopy Create free account
hub / github.com/evilsocket/islazy / IsErrorObject

Method IsErrorObject

plugin/plugin.go:216–218  ·  view source on GitHub ↗

IsErrorObject returns true if the object with a given name is a javascript error object, false otherwise

(name string)

Source from the content-addressed store, hash-verified

214// IsErrorObject returns true if the object with a
215// given name is a javascript error object, false otherwise
216func (p *Plugin) IsErrorObject(name string) bool {
217 return p.GetTypeObject(name) == "ErrorObject"
218}
219
220// GetObject returns an interface containing the value of the object by its name
221func (p *Plugin) GetObject(name string) (interface{}, error) {

Callers

nothing calls this directly

Calls 1

GetTypeObjectMethod · 0.95

Tested by

no test coverage detected