Files
node/test/parallel
Daniel Bevenius 6fc9c331c6 test: add hasCrypto when using binding('crypto')
Currently, when configured --without-ssl tests that use
process.binding('crypto') fail with the following error:

=== release test-accessor-properties ===
Path: parallel/test-accessor-properties
node/test/parallel/test-accessor-properties.js:16
const crypto = process.binding('crypto');
                       ^

Error: No such module: crypto
    at Object.<anonymous> (test-accessor-properties.js:16:24)
    at Module._compile (module.js:660:30)
    at Object.Module._extensions..js (module.js:671:10)
    at Module.load (module.js:577:32)
    at tryModuleLoad (module.js:517:12)
    at Function.Module._load (module.js:509:3)
    at Function.Module.runMain (module.js:701:10)
    at startup (bootstrap_node.js:194:16)
    at bootstrap_node.js:645:3

This commit adds a hasCrypto check.

PR-URL: https://github.com/nodejs/node/pull/17867
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2017-12-29 06:09:57 +01:00
..
2017-12-29 00:04:40 +01:00
2017-12-22 12:49:10 -08:00
2017-12-22 12:49:10 -08:00
2017-12-22 12:49:10 -08:00
2017-12-22 12:49:10 -08:00
2017-12-22 12:49:10 -08:00
2017-12-22 12:49:10 -08:00
2017-12-22 12:49:10 -08:00
2017-12-22 12:49:10 -08:00
2017-12-22 12:49:10 -08:00
2017-11-26 08:47:33 -08:00
2017-11-10 14:27:52 -05:00
2017-11-26 08:57:35 -08:00