(obj *Object)
| 1433 | } |
| 1434 | |
| 1435 | func (r *Runtime) checkStdArrayObjWithProto(obj *Object) *arrayObject { |
| 1436 | if arr := r.checkStdArrayObj(obj); arr != nil { |
| 1437 | if p1, ok := arr.prototype.self.(*arrayObject); ok && p1.propValueCount == 0 { |
| 1438 | if p2, ok := p1.prototype.self.(*baseObject); ok && p2.prototype == nil { |
| 1439 | p2.ensurePropOrder() |
| 1440 | if p2.idxPropCount == 0 { |
| 1441 | return arr |
| 1442 | } |
| 1443 | } |
| 1444 | } |
| 1445 | } |
| 1446 | return nil |
| 1447 | } |
| 1448 | |
| 1449 | func (r *Runtime) checkStdArray(v Value) *arrayObject { |
| 1450 | if obj, ok := v.(*Object); ok { |
no test coverage detected