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

Method hasOwnPropertyStr

object_goarray_reflect.go:228–233  ·  view source on GitHub ↗
(name unistring.String)

Source from the content-addressed store, hash-verified

226}
227
228func (o *objectGoArrayReflect) hasOwnPropertyStr(name unistring.String) bool {
229 if o._hasStr(name) || name == "length" {
230 return true
231 }
232 return o.objectGoReflect.hasOwnPropertyStr(name)
233}
234
235func (o *objectGoArrayReflect) defineOwnPropertyIdx(idx valueInt, descr PropertyDescriptor, throw bool) bool {
236 if i := toIntStrict(int64(idx)); i >= 0 {

Callers 1

setForeignStrMethod · 0.95

Calls 2

_hasStrMethod · 0.95
hasOwnPropertyStrMethod · 0.65

Tested by

no test coverage detected