fix: tolerate whitelist absence better
MODIFY
packages/ses/src/intrinsics.js
packages/ses/src/intrinsics.js
@@ -53,8 +53,10 @@ function initProperties(obj, descs) {
function sampleGlobals(globalObject, newPropertyNames) {
const newIntrinsics = { __proto__: null };
for (const [globalName, intrinsicName] of entries(newPropertyNames)) {
+ if (objectHasOwnProperty(globalObject, globalName)) {
newIntrinsics[intrinsicName] = globalObject[globalName];
}
+ }
return newIntrinsics;
}

fix: tolerate whitelist absence better (#408)