(name unistring.String, value Value, throw bool)
| 423 | } |
| 424 | |
| 425 | func (a *templatedArrayObject) setOwnStr(name unistring.String, value Value, throw bool) bool { |
| 426 | if name == "length" { |
| 427 | return a.setLength(a.val.runtime.toLengthUint32(value), throw) |
| 428 | } |
| 429 | if !a.templatedObject.setOwnStr(name, value, throw) { |
| 430 | return false |
| 431 | } |
| 432 | if idx := strToArrayIdx(name); idx != math.MaxUint32 { |
| 433 | a._setOwnIdx(idx) |
| 434 | } |
| 435 | return true |
| 436 | } |
| 437 | |
| 438 | func (a *templatedArrayObject) setOwnIdx(p valueInt, v Value, throw bool) bool { |
| 439 | if !a.templatedObject.setOwnStr(p.string(), v, throw) { |
nothing calls this directly
no test coverage detected