()
| 1692 | } |
| 1693 | |
| 1694 | func (r *Runtime) getArray() *Object { |
| 1695 | ret := r.global.Array |
| 1696 | if ret == nil { |
| 1697 | ret = &Object{runtime: r} |
| 1698 | ret.self = r.createArray(ret) |
| 1699 | r.global.Array = ret |
| 1700 | } |
| 1701 | return ret |
| 1702 | } |
| 1703 | |
| 1704 | func (r *Runtime) createArray(val *Object) objectImpl { |
| 1705 | o := r.newNativeFuncConstructObj(val, r.builtin_newArray, "Array", r.getArrayPrototype(), 1) |
no test coverage detected