(mode)
| 19 | } |
| 20 | |
| 21 | function nestedVarRedeclareTest(mode) { |
| 22 | const gpu = new GPU({ mode }); |
| 23 | const f = gpu.createKernel(nestedVarRedeclareFunction, { |
| 24 | output: [1], |
| 25 | }); |
| 26 | assert.throws(() => { |
| 27 | f(); |
| 28 | }); |
| 29 | gpu.destroy(); |
| 30 | } |
| 31 | |
| 32 | test('Issue #31 - nestedVarRedeclare auto', () => { |
| 33 | nestedVarRedeclareTest(null); |
no test coverage detected
searching dependent graphs…