◐ Shell
clean mode source ↗

test: test-crypto-scrypt.js doesn't need internals · nodejs/node@3beac87

Original file line numberDiff line numberDiff line change

@@ -1,4 +1,3 @@

1-

// Flags: --expose-internals --no-warnings

21

'use strict';

32

const common = require('../common');

43

if (!common.hasCrypto)

@@ -7,8 +6,7 @@ if (!common.hasCrypto)

76

const assert = require('assert');

87

const crypto = require('crypto');

98
10-

const { internalBinding } = require('internal/test/binding');

11-

if (typeof internalBinding('crypto').ScryptJob !== 'function')

9+

if (typeof crypto.scrypt !== 'function' || typeof crypto.scryptSync !== 'function')

1210

common.skip('no scrypt support');

1311
1412

const good = [