summaryrefslogtreecommitdiff
path: root/test/parallel/test-stream-inheritance.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-stream-inheritance.js')
-rw-r--r--test/parallel/test-stream-inheritance.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/parallel/test-stream-inheritance.js b/test/parallel/test-stream-inheritance.js
index 2d9a1e83ef..a687ea9da0 100644
--- a/test/parallel/test-stream-inheritance.js
+++ b/test/parallel/test-stream-inheritance.js
@@ -56,3 +56,8 @@ common.expectsError(
message: 'undefined does not inherit from CustomWritable'
}
);
+
+class OtherCustomWritable extends Writable {}
+
+assert(!(new OtherCustomWritable() instanceof CustomWritable));
+assert(!(new CustomWritable() instanceof OtherCustomWritable));