mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
15cd45c6fc
Fix running the tests when node was compiled without crypto
support. Some of these are cleanup after 52bae222a3
, where
common was used before it was required.
PR-URL: https://github.com/nodejs/node/pull/7056
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
14 lines
298 B
JavaScript
14 lines
298 B
JavaScript
'use strict';
|
|
|
|
const common = require('../common');
|
|
if (!common.hasCrypto) {
|
|
common.skip('missing crypto');
|
|
return;
|
|
}
|
|
|
|
const util = require('util');
|
|
const TLSWrap = process.binding('tls_wrap').TLSWrap;
|
|
|
|
// This will abort if internal pointer is not set to nullptr.
|
|
util.inspect(new TLSWrap());
|