mirror of https://github.com/lukechilds/node.git
Browse Source
PR-URL: https://github.com/nodejs/node/pull/10964 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>v7.x
DavidCai
8 years ago
committed by
Evan Lucas
2 changed files with 30 additions and 1 deletions
@ -0,0 +1,12 @@ |
|||
// 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()); |
|||
} |
Loading…
Reference in new issue