mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
PR-URL: https://github.com/nodejs/node/pull/10964 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
13 lines
350 B
JavaScript
13 lines
350 B
JavaScript
// Flags: --expose-internals
|
|
'use strict';
|
|
require('../common');
|
|
const assert = require('assert');
|
|
const util = require('internal/util');
|
|
|
|
if (!process.versions.openssl) {
|
|
assert.throws(() => util.assertCrypto(),
|
|
/^Node.js is not compiled with openssl crypto support$/);
|
|
} else {
|
|
assert.doesNotThrow(() => util.assertCrypto());
|
|
}
|