(obj *Object)
| 1421 | } |
| 1422 | |
| 1423 | func (r *Runtime) checkStdArrayObj(obj *Object) *arrayObject { |
| 1424 | if arr, ok := obj.self.(*arrayObject); ok && |
| 1425 | arr.propValueCount == 0 && |
| 1426 | arr.length == uint32(len(arr.values)) && |
| 1427 | uint32(arr.objCount) == arr.length { |
| 1428 | |
| 1429 | return arr |
| 1430 | } |
| 1431 | |
| 1432 | return nil |
| 1433 | } |
| 1434 | |
| 1435 | func (r *Runtime) checkStdArrayObjWithProto(obj *Object) *arrayObject { |
| 1436 | if arr := r.checkStdArrayObj(obj); arr != nil { |
no outgoing calls
no test coverage detected