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

Method setProto

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

Source from the content-addressed store, hash-verified

168}
169
170func (o *templatedObject) setProto(proto *Object, throw bool) bool {
171 o.protoMaterialised = true
172 ret := o.baseObject.setProto(proto, throw)
173 if ret {
174 o.protoMaterialised = true
175 }
176 return ret
177}
178
179func (o *templatedObject) setForeignIdx(name valueInt, val, receiver Value, throw bool) (bool, bool) {
180 return o.setForeignStr(name.string(), val, receiver, throw)

Callers

nothing calls this directly

Calls 1

setProtoMethod · 0.65

Tested by

no test coverage detected