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

Method hasPropertyStr

object_dynamic.go:336–344  ·  view source on GitHub ↗
(u unistring.String)

Source from the content-addressed store, hash-verified

334}
335
336func (o *dynamicObject) hasPropertyStr(u unistring.String) bool {
337 if o.hasOwnPropertyStr(u) {
338 return true
339 }
340 if proto := o.prototype; proto != nil {
341 return proto.self.hasPropertyStr(u)
342 }
343 return false
344}
345
346func (o *dynamicObject) hasPropertyIdx(idx valueInt) bool {
347 if o.hasOwnPropertyIdx(idx) {

Callers

nothing calls this directly

Calls 2

hasOwnPropertyStrMethod · 0.95
hasPropertyStrMethod · 0.65

Tested by

no test coverage detected