(l uint32, throw bool)
| 116 | } |
| 117 | |
| 118 | func (a *arrayObject) setLengthInt(l uint32, throw bool) bool { |
| 119 | if l == a.length { |
| 120 | return true |
| 121 | } |
| 122 | if !a.lengthProp.writable { |
| 123 | a.val.runtime.typeErrorResult(throw, "length is not writable") |
| 124 | return false |
| 125 | } |
| 126 | return a._setLengthInt(l, throw) |
| 127 | } |
| 128 | |
| 129 | func (a *arrayObject) setLength(v uint32, throw bool) bool { |
| 130 | if !a.lengthProp.writable { |
no test coverage detected