UNPKG

304 BJavaScriptView Raw
1'use strict';
2var fails = require('../internals/fails');
3
4module.exports = !fails(function () {
5 function F() { /* empty */ }
6 F.prototype.constructor = null;
7 // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
8 return Object.getPrototypeOf(new F()) !== F.prototype;
9});