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

Method setOwnStr

object_template.go:142–149  ·  view source on GitHub ↗
(p unistring.String, v Value, throw bool)

Source from the content-addressed store, hash-verified

140}
141
142func (o *templatedObject) setOwnStr(p unistring.String, v Value, throw bool) bool {
143 existing := o.getOwnPropStr(p) // materialise property (in case it's an accessor)
144 if existing == nil {
145 o.materialiseProto()
146 o.materialisePropNames()
147 }
148 return o.baseObject.setOwnStr(p, v, throw)
149}
150
151func (o *templatedObject) setOwnSym(name *Symbol, val Value, throw bool) bool {
152 o.materialiseSymbols()

Callers

nothing calls this directly

Calls 4

getOwnPropStrMethod · 0.95
materialiseProtoMethod · 0.95
materialisePropNamesMethod · 0.95
setOwnStrMethod · 0.65

Tested by

no test coverage detected