From ce986803d205c0ce68a618e54f3dfadf570b5477 Mon Sep 17 00:00:00 2001 From: F3n67u Date: Mon, 27 Jun 2022 13:34:43 +0800 Subject: [PATCH 1/2] test: use Object for `tests` variable in fs trace test --- test/parallel/test-trace-events-fs-sync.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-trace-events-fs-sync.js b/test/parallel/test-trace-events-fs-sync.js index b12694f4efa607..e9f8c2d2207a4f 100644 --- a/test/parallel/test-trace-events-fs-sync.js +++ b/test/parallel/test-trace-events-fs-sync.js @@ -6,7 +6,7 @@ const fs = require('fs'); const path = require('path'); const util = require('util'); -const tests = new Array(); +const tests = {}; let gid = 1; let uid = 1; From dfac3a289ef2482f7fe684e7a9c301175adc4a18 Mon Sep 17 00:00:00 2001 From: Feng Yu Date: Mon, 27 Jun 2022 16:20:06 +0800 Subject: [PATCH 2/2] Update test/parallel/test-trace-events-fs-sync.js Co-authored-by: Antoine du Hamel --- test/parallel/test-trace-events-fs-sync.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-trace-events-fs-sync.js b/test/parallel/test-trace-events-fs-sync.js index e9f8c2d2207a4f..14c6a122dd299f 100644 --- a/test/parallel/test-trace-events-fs-sync.js +++ b/test/parallel/test-trace-events-fs-sync.js @@ -6,7 +6,7 @@ const fs = require('fs'); const path = require('path'); const util = require('util'); -const tests = {}; +const tests = Object.create(null); let gid = 1; let uid = 1;