MCPcopy Create free account
hub / github.com/gpujs/gpu.js / nestedVarRedeclareTest

Function nestedVarRedeclareTest

test/issues/31-nested-var-declare-test.js:21–30  ·  view source on GitHub ↗
(mode)

Source from the content-addressed store, hash-verified

19}
20
21function 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
32test('Issue #31 - nestedVarRedeclare auto', () => {
33 nestedVarRedeclareTest(null);

Callers 1

Calls 2

createKernelMethod · 0.95
destroyMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…