diff --git a/test/parallel/test-crypto-domain.js b/test/parallel/test-crypto-domain.js index 348b55b09d4e17..62e2be4c0f39c2 100644 --- a/test/parallel/test-crypto-domain.js +++ b/test/parallel/test-crypto-domain.js @@ -28,7 +28,7 @@ const assert = require('assert'); const crypto = require('crypto'); const domain = require('domain'); -function test(fn) { +const test = (fn) => { const ex = new Error('BAM'); const d = domain.create(); d.on('error', common.mustCall(function(err) { @@ -38,7 +38,7 @@ function test(fn) { throw ex; }); d.run(cb); -} +}; test(function(cb) { crypto.pbkdf2('password', 'salt', 1, 8, cb);