node/test/fixtures/errors/async_error_microtask_main.js

14 lines
197 B
JavaScript
Raw Permalink Normal View History

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