11 lines
273 B
JavaScript
11 lines
273 B
JavaScript
/**
|
|
* Returns a circular object — tests that the runner handles JSON.stringify failure
|
|
* gracefully (reports serializationError instead of crashing the child process).
|
|
*/
|
|
async function main() {
|
|
const o = { a: 1 };
|
|
o.self = o;
|
|
return o;
|
|
}
|
|
module.exports = main;
|