summaryrefslogtreecommitdiff
path: root/test/addons/make-callback-recurse/test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/addons/make-callback-recurse/test.js')
-rw-r--r--test/addons/make-callback-recurse/test.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/addons/make-callback-recurse/test.js b/test/addons/make-callback-recurse/test.js
index a93a0a4e01..4a540003ac 100644
--- a/test/addons/make-callback-recurse/test.js
+++ b/test/addons/make-callback-recurse/test.js
@@ -71,7 +71,7 @@ assert.throws(() => {
if (arg === 1) {
// The tests are first run on bootstrap during LoadEnvironment() in
// src/node.cc. Now run the tests through node::MakeCallback().
- setImmediate(function() {
+ setImmediate(() => {
makeCallback({}, common.mustCall(() => {
verifyExecutionOrder(2);
}));