11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_ci 31cb0ef41Sopenharmony_cirequire('../common'); 41cb0ef41Sopenharmony_ciconst { AsyncResource } = require('async_hooks'); 51cb0ef41Sopenharmony_ci 61cb0ef41Sopenharmony_citry { 71cb0ef41Sopenharmony_ci new AsyncResource('foo').runInAsyncScope(() => { throw new Error('bar'); }); 81cb0ef41Sopenharmony_ci} catch { 91cb0ef41Sopenharmony_ci // Continue regardless of error. 101cb0ef41Sopenharmony_ci} 111cb0ef41Sopenharmony_ci// Should abort (fail the case) if async id is not matching. 12