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 <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
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

Lines changed: 7 additions & 0 deletions
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)