node/test/parallel/test-instanceof.js
Franziska Hinkelmann 44c9a72aad test: add regression test for instanceof
Ref: https://github.com/nodejs/node/issues/7592.
PR-URL: https://github.com/nodejs/node/pull/7638
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
2016-07-21 15:01:48 -05:00

7 lines
158 B
JavaScript

'use strict';
require('../common');
const assert = require('assert');
const F = () => {};
F.prototype = {};
assert(Object.create(F.prototype) instanceof F);