9 lines
290 B
JavaScript
9 lines
290 B
JavaScript
|
var fails = require('../internals/fails');
|
||
|
|
||
|
module.exports = !fails(function () {
|
||
|
function F() { /* empty */ }
|
||
|
F.prototype.constructor = null;
|
||
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
||
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
||
|
});
|