|
1 | | -// Flags: --expose-internals --no-warnings |
2 | 1 | 'use strict'; |
3 | 2 | const common = require('../common'); |
4 | 3 | if (!common.hasCrypto) |
@@ -7,8 +6,7 @@ if (!common.hasCrypto)
|
7 | 6 | const assert = require('assert'); |
8 | 7 | const crypto = require('crypto'); |
9 | 8 | |
10 | | -const { internalBinding } = require('internal/test/binding'); |
11 | | -if (typeof internalBinding('crypto').ScryptJob !== 'function') |
| 9 | +if (typeof crypto.scrypt !== 'function' || typeof crypto.scryptSync !== 'function') |
12 | 10 | common.skip('no scrypt support'); |
13 | 11 | |
14 | 12 | const good = [ |
|