summaryrefslogtreecommitdiff
path: root/test/parallel/test-instanceof.js
blob: 658f1e29c7a60f4a4714db406cc639893ba2eb69 (plain)
1
2
3
4
5
6
7
8
9
10
11
'use strict';

require('../common');
const assert = require('assert');


// Regression test for instanceof, see
// https://github.com/nodejs/node/issues/7592
const F = () => {};
F.prototype = {};
assert(Object.create(F.prototype) instanceof F);