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

Method setForeignStr

object_gomap.go:72–74  ·  view source on GitHub ↗
(name unistring.String, val, receiver Value, throw bool)

Source from the content-addressed store, hash-verified

70}
71
72func (o *objectGoMapSimple) setForeignStr(name unistring.String, val, receiver Value, throw bool) (bool, bool) {
73 return o._setForeignStr(name, trueValIfPresent(o._hasStr(name.String())), val, receiver, throw)
74}
75
76func (o *objectGoMapSimple) _hasStr(name string) bool {
77 _, exists := o.data[name]

Callers

nothing calls this directly

Calls 4

_hasStrMethod · 0.95
trueValIfPresentFunction · 0.85
_setForeignStrMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected