MCPcopy Index your code
hub / github.com/bytecodealliance/ComponentizeJS / test

Function test

test/builtins/timeout-disabled.js:17–28  ·  view source on GitHub ↗
(run)

Source from the content-addressed store, hash-verified

15export const disableFeatures = ['clocks'];
16
17export async function test(run) {
18 try {
19 await run();
20 }
21 catch (e) {
22 const { stdout, stderr, err } = e;
23 const [timestart, timeend] = stdout.split('\n');
24 ok(stderr.includes('RuntimeError: unreachable'));
25 ok(Number(timestart) > 0);
26 strictEqual(timeend, '');
27 }
28}

Callers

nothing calls this directly

Calls 1

runFunction · 0.50

Tested by

no test coverage detected