MCPcopy Create free account
hub / github.com/browserify/static-module / getVars

Function getVars

index.js:425–434  ·  view source on GitHub ↗
(node, vars)

Source from the content-addressed store, hash-verified

423}
424
425function getVars(node, vars) {
426 var xvars = copy(vars || {});
427 var scope = nearestScope(node);
428 if (scope) {
429 scope.forEachAvailable(function (binding, name) {
430 if (binding.hasOwnProperty('value')) xvars[name] = binding.value;
431 });
432 }
433 return xvars;
434}

Callers 1

traverseFunction · 0.85

Calls 1

nearestScopeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…