blob: 697d4d30806ee77f215d48ca485bbd51695976f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
'use strict';
const common = require('../common');
process.setUncaughtExceptionCaptureCallback(common.mustNotCall());
common.expectsError(
() => require('domain'),
{
code: 'ERR_DOMAIN_CALLBACK_NOT_AVAILABLE',
type: Error,
message: /^A callback was registered.*with using the `domain` module/
}
);
process.setUncaughtExceptionCaptureCallback(null);
require('domain'); // Should not throw.
|