(func)
| 42 | var viewLength = 0; |
| 43 | |
| 44 | function getElementSize(func) { |
| 45 | switch (func) { |
| 46 | case "Int8": |
| 47 | case "Uint8": |
| 48 | return 1; |
| 49 | case "Int16": |
| 50 | case "Uint16": |
| 51 | return 2; |
| 52 | case "Int32": |
| 53 | case "Uint32": |
| 54 | case "Float32": |
| 55 | return 4; |
| 56 | case "Float64": |
| 57 | return 8; |
| 58 | default: |
| 59 | assertUnreachable(func); |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | function checkGet(func, index, expected, littleEndian) { |
| 64 | function doGet() { |
no test coverage detected