(name unistring.String, receiver Value)
| 110 | } |
| 111 | |
| 112 | func (o *objectGoArrayReflect) getStr(name unistring.String, receiver Value) Value { |
| 113 | var ownProp Value |
| 114 | if idx := strToGoIdx(name); idx >= 0 && idx < o.fieldsValue.Len() { |
| 115 | ownProp = o._getIdx(idx) |
| 116 | } else if name == "length" { |
| 117 | if o.fieldsValue.Kind() == reflect.Slice { |
| 118 | o.updateLen() |
| 119 | } |
| 120 | ownProp = &o.lengthProp |
| 121 | } else { |
| 122 | ownProp = o.objectGoReflect.getOwnPropStr(name) |
| 123 | } |
| 124 | return o.getStrWithOwnProp(ownProp, name, receiver) |
| 125 | } |
| 126 | |
| 127 | func (o *objectGoArrayReflect) getOwnPropStr(name unistring.String) Value { |
| 128 | if idx := strToGoIdx(name); idx >= 0 { |
nothing calls this directly
no test coverage detected