mirror of
https://github.com/nodejs/node.git
synced 2025-05-05 19:08:17 +00:00

Add regression test for issue https://github.com/nodejs/node/issues/7592. The issue was fixed in upstream V8 and this test case was previously added with a manual cherry pick for v6.x. Related to: https://github.com/nodejs/node/pull/7638 and https://github.com/nodejs/node/issues/7592. PR-URL: https://github.com/nodejs/node/pull/9178 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
11 lines
244 B
JavaScript
11 lines
244 B
JavaScript
'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);
|