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 c9d440e

Browse filesBrowse files
fcampinhoMylesBorins
authored andcommitted
test: change == to === in crypto test
Changed the equality comparison from == to identity operator === PR-URL: #12405 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>
1 parent 1de0490 commit c9d440e
Copy full SHA for c9d440e

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎test/parallel/test-crypto-sign-verify.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-crypto-sign-verify.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const modSize = 1024;
142142
padding: crypto.constants.RSA_PKCS1_PSS_PADDING,
143143
saltLength: verifySaltLength
144144
}, s4);
145-
const saltLengthCorrect = getEffectiveSaltLength(signSaltLength) ==
145+
const saltLengthCorrect = getEffectiveSaltLength(signSaltLength) ===
146146
getEffectiveSaltLength(verifySaltLength);
147147
assert.strictEqual(verified, saltLengthCorrect, 'verify (PSS)');
148148
});

0 commit comments

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