Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Legitcode/tests
/ propagateToGlobal
Function
propagateToGlobal
src/dom.js:2–9 ·
view source on GitHub ↗
(window)
Source
from the content-addressed store, hash-verified
1
/* globals global */
2
function
propagateToGlobal (window) {
3
for
(
let
key in window) {
4
if
(!window.hasOwnProperty(key)) continue
5
if
(key in global) continue
6
7
global[key] = window[key]
8
}
9
}
10
11
var
jsdom = require(
'jsdom'
)
12
Callers
1
dom.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected