(view, index, errorType)
| 395 | } |
| 396 | |
| 397 | function assertAllDataViewMethodsThrow(view, index, errorType) { |
| 398 | for (const [getter, setter, size, isBigInt] of dataViewAccessorsAndSizes) { |
| 399 | if (isBigInt) { |
| 400 | assertThrows(() => { setter.call(view, index, 3n); }, errorType); |
| 401 | } else { |
| 402 | assertThrows(() => { setter.call(view, index, 3); }, errorType); |
| 403 | } |
| 404 | assertThrows(() => { getter.call(view, index); }, errorType); |
| 405 | } |
| 406 | } |
| 407 | |
| 408 | function ObjectDefinePropertyHelper(ta, index, value) { |
| 409 | if (ta instanceof BigInt64Array || ta instanceof BigUint64Array) { |
no test coverage detected