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

Method hasPropertyStr

object_template.go:189–198  ·  view source on GitHub ↗
(name unistring.String)

Source from the content-addressed store, hash-verified

187}
188
189func (o *templatedObject) hasPropertyStr(name unistring.String) bool {
190 if o.val.self.hasOwnPropertyStr(name) {
191 return true
192 }
193 o.materialiseProto()
194 if o.prototype != nil {
195 return o.prototype.self.hasPropertyStr(name)
196 }
197 return false
198}
199
200func (o *templatedObject) hasPropertySym(s *Symbol) bool {
201 if o.hasOwnPropertySym(s) {

Callers

nothing calls this directly

Calls 3

materialiseProtoMethod · 0.95
hasOwnPropertyStrMethod · 0.65
hasPropertyStrMethod · 0.65

Tested by

no test coverage detected