0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/internet/test-dns-txt-sigsegv.js

16 lines
407 B
JavaScript
Raw Normal View History

'use strict';
require('../common');
const assert = require('assert');
const dns = require('dns');
const dnsPromises = dns.promises;
(async function() {
const result = await dnsPromises.resolveTxt('www.microsoft.com');
assert.strictEqual(result.length, 0);
})();
dns.resolveTxt('www.microsoft.com', function(err, records) {
assert.strictEqual(err, null);
assert.strictEqual(records.length, 0);
});