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// Should abort (fail the case) if async id is not matching. 10