MCPcopy
hub / github.com/rollup/rollup / NullProtoObject

Function NullProtoObject

test/form/samples/supports-core-js/_expected.js:1712–1724  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1710 // avoid IE GC bug
1711 var activeXDocument;
1712 var NullProtoObject = function () {
1713 try {
1714 activeXDocument = new ActiveXObject('htmlfile');
1715 } catch (error) { /* ignore */ }
1716 NullProtoObject = typeof document != 'undefined'
1717 ? document.domain && activeXDocument
1718 ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1719 : NullProtoObjectViaIFrame()
1720 : NullProtoObjectViaActiveX(activeXDocument); // WSH
1721 var length = enumBugKeys.length;
1722 while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1723 return NullProtoObject();
1724 };
1725
1726 hiddenKeys[IE_PROTO] = true;
1727

Callers 1

requireObjectCreateFunction · 0.85

Calls 2

NullProtoObjectViaIFrameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…