(name unistring.String)
| 125 | } |
| 126 | |
| 127 | func (o *objectGoArrayReflect) getOwnPropStr(name unistring.String) Value { |
| 128 | if idx := strToGoIdx(name); idx >= 0 { |
| 129 | if idx < o.fieldsValue.Len() { |
| 130 | return &valueProperty{ |
| 131 | value: o._getIdx(idx), |
| 132 | writable: true, |
| 133 | enumerable: true, |
| 134 | } |
| 135 | } |
| 136 | return nil |
| 137 | } |
| 138 | if name == "length" { |
| 139 | if o.fieldsValue.Kind() == reflect.Slice { |
| 140 | o.updateLen() |
| 141 | } |
| 142 | return &o.lengthProp |
| 143 | } |
| 144 | return o.objectGoReflect.getOwnPropStr(name) |
| 145 | } |
| 146 | |
| 147 | func (o *objectGoArrayReflect) getOwnPropIdx(idx valueInt) Value { |
| 148 | if idx := toIntStrict(int64(idx)); idx >= 0 && idx < o.fieldsValue.Len() { |
nothing calls this directly
no test coverage detected