* Favor strictEqual * Use const where appropriate * Modernize where possible PR-URL: https://github.com/nodejs/node/pull/8468 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
8 lines
256 B
JavaScript
8 lines
256 B
JavaScript
'use strict';
|
|
require('../common');
|
|
const assert = require('assert');
|
|
const dns = require('dns');
|
|
|
|
// Should not raise assertion error. Issue #7070
|
|
assert.throws(() => dns.resolveNs([])); // bad name
|
|
assert.throws(() => dns.resolveNs('')); // bad callback
|