MCPcopy Index your code
hub / github.com/nodejs/node / runEnvInside

Function runEnvInside

test/parallel/test-icu-env.js:54–57  ·  view source on GitHub ↗
(addEnv, func, ...args)

Source from the content-addressed store, hash-verified

52}
53
54function runEnvInside(addEnv, func, ...args) {
55 Object.assign(process.env, addEnv); // side effects!
56 return func(...args);
57}
58
59function isPack(array) {
60 const firstItem = array[0];

Callers 1

test-icu-env.jsFile · 0.85

Calls 2

assignMethod · 0.80
funcFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…