Skip to content

Commit ef9092b

Browse files
committed
test: add regression test for instanceof
See issue nodejs#7592.
1 parent f007c0a commit ef9092b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/parallel/test-instanceof.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
'use strict';
2+
require('../common');
3+
const assert = require('assert');
4+
5+
const F = () => {};
6+
F.prototype = {};
7+
assert(Object.create(F.prototype) instanceof F);

0 commit comments

Comments
 (0)