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];