(all bool, accum []Value)
| 303 | } |
| 304 | |
| 305 | func (a *arrayObject) stringKeys(all bool, accum []Value) []Value { |
| 306 | for i, prop := range a.values { |
| 307 | name := strconv.Itoa(i) |
| 308 | if prop != nil { |
| 309 | if !all { |
| 310 | if prop, ok := prop.(*valueProperty); ok && !prop.enumerable { |
| 311 | continue |
| 312 | } |
| 313 | } |
| 314 | accum = append(accum, asciiString(name)) |
| 315 | } |
| 316 | } |
| 317 | return a.baseObject.stringKeys(all, accum) |
| 318 | } |
| 319 | |
| 320 | func (a *arrayObject) hasOwnPropertyStr(name unistring.String) bool { |
| 321 | if idx := strToArrayIdx(name); idx != math.MaxUint32 { |
nothing calls this directly
no test coverage detected