Skip to content

Commit

Permalink
test: add regression test for instanceof
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
fhinkel authored and evanlucas committed Jul 21, 2016
1 parent 2870061 commit 44c9a72
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/parallel/test-instanceof.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'use strict';
require('../common');
const assert = require('assert');

const F = () => {};
F.prototype = {};
assert(Object.create(F.prototype) instanceof F);

0 comments on commit 44c9a72

Please sign in to comment.