node/test/message/async_error_microtask_main.js

14 lines
203 B
JavaScript

'use strict';
require('../common');
const four = require('../fixtures/async-error');
async function main() {
try {
await four();
} catch (e) {
console.error(e);
}
}
queueMicrotask(main);