summaryrefslogtreecommitdiff
path: root/test/parallel/test-instanceof.js
blob: 5a8b588e7d0beff70cd2fbf4317eacf52ee6ad67 (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({ __proto__: F.prototype } instanceof F);