Files
deepseek-harness/native/system/test/fixtures/flock-callback-throws.js
T

7 lines
275 B
JavaScript

/** Isolate an uncaught native-callback exception from the test runner. */
import { loadFlockBinding } from './flock-binding.js';
const binding = loadFlockBinding();
process.send({ type: 'ready' });
binding.tryLock(-1, () => { throw new Error('flock callback failure'); });