From 3728bc32c53d5758c9153159ed07c95b2bc9a192 Mon Sep 17 00:00:00 2001 From: freida-code <150387862+freida-code@users.noreply.github.com> Date: Thu, 13 Aug 2026 15:53:37 -0400 Subject: [PATCH] test: convert test-async-local-storage-bind to async loop --- test/parallel/test-async-local-storage-bind.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-async-local-storage-bind.js b/test/parallel/test-async-local-storage-bind.js index d8d4c4599826..01aa449c1d46 100644 --- a/test/parallel/test-async-local-storage-bind.js +++ b/test/parallel/test-async-local-storage-bind.js @@ -4,11 +4,11 @@ const common = require('../common'); const assert = require('assert'); const { AsyncLocalStorage } = require('async_hooks'); -[1, false, '', {}, []].forEach((i) => { +for (const i of [1, false, '', {}, []]) { assert.throws(() => AsyncLocalStorage.bind(i), { code: 'ERR_INVALID_ARG_TYPE' }); -}); +} const fn = common.mustCall(AsyncLocalStorage.bind(() => 123)); assert.strictEqual(fn(), 123);