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 fc05ca5

Browse filesBrowse files
naris93MylesBorins
authored andcommitted
test: modernize test-crypto-domain
PR-URL: #23559 Reviewed-By: Sam Ruby <rubys@intertwingly.net> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 77f2100 commit fc05ca5
Copy full SHA for fc05ca5

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

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

Copy file name to clipboardExpand all lines: test/parallel/test-crypto-domain.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const assert = require('assert');
2828
const crypto = require('crypto');
2929
const domain = require('domain');
3030

31-
function test(fn) {
31+
const test = (fn) => {
3232
const ex = new Error('BAM');
3333
const d = domain.create();
3434
d.on('error', common.mustCall(function(err) {
@@ -38,7 +38,7 @@ function test(fn) {
3838
throw ex;
3939
});
4040
d.run(cb);
41-
}
41+
};
4242

4343
test(function(cb) {
4444
crypto.pbkdf2('password', 'salt', 1, 8, cb);

0 commit comments

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