MCPcopy
hub / github.com/rollup/rollup / NullProtoObjectViaActiveX

Function NullProtoObjectViaActiveX

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

Source from the content-addressed store, hash-verified

1678
1679 // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1680 var NullProtoObjectViaActiveX = function (activeXDocument) {
1681 activeXDocument.write(scriptTag(''));
1682 activeXDocument.close();
1683 var temp = activeXDocument.parentWindow.Object;
1684 // eslint-disable-next-line no-useless-assignment -- avoid memory leak
1685 activeXDocument = null;
1686 return temp;
1687 };
1688
1689 // Create object with fake `null` prototype: use iframe Object with cleared prototype
1690 var NullProtoObjectViaIFrame = function () {

Callers 1

NullProtoObjectFunction · 0.85

Calls 2

scriptTagFunction · 0.85
closeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…