1'use strict';
2
3require('../common');
4const { AsyncResource } = require('async_hooks');
5
6try {
7  new AsyncResource('foo').runInAsyncScope(() => { throw new Error('bar'); });
8} catch {
9  // Continue regardless of error.
10}
11// Should abort (fail the case) if async id is not matching.
12