(row, output, columnCount, moduleName)
| 147 | } |
| 148 | |
| 149 | function extractRowArray(row, output, columnCount, moduleName) { |
| 150 | if (row.length !== columnCount) { |
| 151 | throw new TypeError(`Virtual table module "${moduleName}" yielded a row with an incorrect number of columns`); |
| 152 | } |
| 153 | const offset = output.length - columnCount; |
| 154 | for (let i = 0; i < columnCount; ++i) { |
| 155 | output[i + offset] = row[i]; |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | function extractRowObject(row, output, columnMap, moduleName) { |
| 160 | let count = 0; |