From 2f82b14a69ff16e3872b5c72266a818f0e5a7fde Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Tue, 26 Aug 2025 09:38:42 -0400 Subject: [PATCH] chore: simplify NullObject --- test/test.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/test.js b/test/test.js index 6d11aa5..f3677b1 100644 --- a/test/test.js +++ b/test/test.js @@ -9,11 +9,8 @@ class Custom { } } -const NullObject = (() => { - const C = function () {}; - C.prototype = Object.create(null); - return C; -})(); +function NullObject() {} +NullObject.prototype = Object.create(null); const node_version = +process.versions.node.split('.')[0];