MCPcopy Create free account
hub / github.com/dop251/goja / setProto

Method setProto

destruct.go:175–177  ·  view source on GitHub ↗
(proto *Object, throw bool)

Source from the content-addressed store, hash-verified

173}
174
175func (d *destructKeyedSource) setProto(proto *Object, throw bool) bool {
176 return d.w().setProto(proto, throw)
177}
178
179func (d *destructKeyedSource) hasInstance(v Value) bool {
180 return d.w().hasInstance(v)

Callers

nothing calls this directly

Calls 2

wMethod · 0.95
setProtoMethod · 0.65

Tested by

no test coverage detected