Page MenuHomeSoftware Heritage

correct-prototype-getter.js
No OneTemporary

correct-prototype-getter.js

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;
});

File Metadata

Mime Type
text/plain
Expires
Thu, Jul 3, 11:26 AM (6 d, 7 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3340656

Event Timeline