mirror of
https://github.com/nodejs/node.git
synced 2025-05-01 17:03:34 +00:00

PR-URL: https://github.com/nodejs/node/pull/17498 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Jon Moss <me@jonathanmoss.me>
15 lines
310 B
JavaScript
15 lines
310 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
|
|
if (!common.hasCrypto)
|
|
common.skip('missing crypto');
|
|
|
|
const tls = require('tls');
|
|
|
|
{
|
|
common.expectsError(
|
|
() => { tls.createSecureContext({ clientCertEngine: 0 }); },
|
|
{ code: 'ERR_INVALID_ARG_TYPE',
|
|
message: / Received type number$/ });
|
|
}
|