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>
7 lines
158 B
JavaScript
7 lines
158 B
JavaScript
'use strict';
|
|
require('../common');
|
|
const assert = require('assert');
|
|
|
|
const F = () => {};
|
|
F.prototype = {};
|
|
assert(Object.create(F.prototype) instanceof F);
|