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

Method setForeignStr

object_template.go:157–163  ·  view source on GitHub ↗
(name unistring.String, val, receiver Value, throw bool)

Source from the content-addressed store, hash-verified

155}
156
157func (o *templatedObject) setForeignStr(name unistring.String, val, receiver Value, throw bool) (bool, bool) {
158 ownProp := o.getOwnPropStr(name)
159 if ownProp == nil {
160 o.materialiseProto()
161 }
162 return o._setForeignStr(name, ownProp, val, receiver, throw)
163}
164
165func (o *templatedObject) proto() *Object {
166 o.materialiseProto()

Callers 1

setForeignIdxMethod · 0.95

Calls 3

getOwnPropStrMethod · 0.95
materialiseProtoMethod · 0.95
_setForeignStrMethod · 0.80

Tested by

no test coverage detected