MCPcopy Create free account
hub / github.com/ampproject/amphtml / NativeInOb

Function NativeInOb

test/unit/polyfills/test-intersection-observer.js:351–355  ·  view source on GitHub ↗
(_ioCallback, opts)

Source from the content-addressed store, hash-verified

349 it('should choose best InOb possible before and after upgrade, as well as upgrade rootdoc stubs.', async () => {
350 const {win} = env;
351 function NativeInOb(_ioCallback, opts) {
352 if (opts && opts.root && opts.root.nodeType === 9) {
353 throw new Error('May not have root:document');
354 }
355 }
356 win.IntersectionObserver = NativeInOb;
357 const docRoot = {root: {nodeType: 9}};
358

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected