| 132 | } |
| 133 | |
| 134 | std::vector<ListViewColumn> ListViewColumnVecFromJS(JSContext* ctx, JSValue d) |
| 135 | { |
| 136 | std::vector<ListViewColumn> result; |
| 137 | if (JS_IsArray(d)) |
| 138 | { |
| 139 | JSIterateArray(ctx, d, [&result](JSContext* ctx2, JSValue x) { result.push_back(ListViewColumnFromJS(ctx2, x)); }); |
| 140 | } |
| 141 | return result; |
| 142 | } |
| 143 | |
| 144 | std::vector<ListViewItem> ListViewItemVecFromJS(JSContext* ctx, JSValue d) |
| 145 | { |
no test coverage detected