Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3beac87

Browse filesBrowse files
nektrotargos
authored andcommitted
test: test-crypto-scrypt.js doesn't need internals
PR-URL: #56673 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent bab9c4d commit 3beac87
Copy full SHA for 3beac87

File tree

Expand file treeCollapse file tree

1 file changed

+1
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-3
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-crypto-scrypt.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-crypto-scrypt.js
+1-3Lines changed: 1 addition & 3 deletions
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 = [

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.