From cca92107a40d5de449e91fbe06a9a571b79c5c66 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 24 Jan 2022 22:04:28 -0800 Subject: [PATCH] test: remove unneeded test statement The statement removed was added in 6657b153abba09a1 but it was not added as an assertion. It currently returns false but t0he test does not fail because of the missing assertion. Since the property is no longer one that exists, there is no need to test its existence. Remove the line. PR-URL: https://github.com/nodejs/node/pull/41663 Reviewed-By: Benjamin Gruenbaum Reviewed-By: Mestery Reviewed-By: Darshan Sen Reviewed-By: Luigi Pinca Reviewed-By: Tierney Cyren --- test/parallel/test-event-emitter-subclass.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/parallel/test-event-emitter-subclass.js b/test/parallel/test-event-emitter-subclass.js index 1157f334594981..a6ef54e5fa7401 100644 --- a/test/parallel/test-event-emitter-subclass.js +++ b/test/parallel/test-event-emitter-subclass.js @@ -36,8 +36,6 @@ function MyEE(cb) { const myee = new MyEE(common.mustCall()); -myee.hasOwnProperty('usingDomains'); - Object.setPrototypeOf(ErrorEE.prototype, EventEmitter.prototype); Object.setPrototypeOf(ErrorEE, EventEmitter); function ErrorEE() {