blob: 78e38c1e9312d70ac66d18695134a7107cce06c8 (
plain)
1
2
3
4
5
6
7
8
9
|
'use strict';
require('../common');
const { AsyncResource } = require('async_hooks');
try {
new AsyncResource('foo').runInAsyncScope(() => { throw new Error('bar'); });
} catch {}
// Should abort (fail the case) if async id is not matching.
|