Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: add regression test for instanceof
See issue #7592.
  • Loading branch information
fhinkel committed Jul 21, 2016
commit ef9092b7f85d8fd59221e0cf7d22418b72591eb2
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);