in knative-build/runtimes/javascript/platform/knative.js [233:253]
function preProcessActivationData(env, activationdata) {
DEBUG.functionStart();
try {
// Note: we move the values here so that the "run()" handler does not have
// to move them again.
Object.keys(activationdata).forEach(
function (k) {
if (typeof activationdata[k] === 'string') {
var envVariable = OW_ENV_PREFIX + k.toUpperCase();
process.env[envVariable] = activationdata[k];
DEBUG.dumpObject(process.env[envVariable], envVariable, "preProcessActivationData");
}
}
);
} catch(e){
console.error(e);
DEBUG.functionEndError(e.message);
throw("Unable to process Activation data: " + e.message);
}
DEBUG.functionEnd();
}