Skip to content

Commit 44c9a72

Browse files
fhinkelevanlucas
authored andcommitted
test: add regression test for instanceof
Ref: #7592. PR-URL: #7638 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Ali Ijaz Sheikh <[email protected]>
1 parent 2870061 commit 44c9a72

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)