mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
PR-URL: https://github.com/nodejs/node/pull/60891 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
15 lines
371 B
JavaScript
15 lines
371 B
JavaScript
// Flags: --expose-internals
|
|
import '../common/index.mjs';
|
|
import assert from 'assert';
|
|
import { lookupService } from 'dns/promises';
|
|
|
|
const invalidAddress = 'fasdfdsaf';
|
|
|
|
assert.throws(() => {
|
|
lookupService(invalidAddress, 0);
|
|
}, {
|
|
code: 'ERR_INVALID_ARG_VALUE',
|
|
name: 'TypeError',
|
|
message: `The argument 'address' is invalid. Received '${invalidAddress}'`,
|
|
});
|