MCPcopy Create free account
hub / github.com/nodejs/node / expose

Function expose

test/fixtures/wpt/resources/testharness.js:4965–4976  ·  view source on GitHub ↗
(object, name)

Source from the content-addressed store, hash-verified

4963 }
4964
4965 function expose(object, name)
4966 {
4967 var components = name.split(".");
4968 var target = global_scope;
4969 for (var i = 0; i < components.length - 1; i++) {
4970 if (!(components[i] in target)) {
4971 target[components[i]] = {};
4972 }
4973 target = target[components[i]];
4974 }
4975 target[components[components.length - 1]] = object;
4976 }
4977
4978 function is_same_origin(w) {
4979 try {

Callers 2

testharness.jsFile · 0.70
expose_assertFunction · 0.70

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected