consistency: ask orthogonal questions of options
MODIFY
realms-shim
realms-shim
-Subproject commit 1e2a119431bb0317ae12d294adf8bf1a42e59775
+Subproject commit 041e8c404c440e40f405d33bae09e5dece2c0eb4

MODIFY
src/bundle/createSES.js
src/bundle/createSES.js
@@ -32,9 +32,14 @@ export function createSESWithRealmConstructor(creatorStrings, Realm) {
// eslint-disable-next-line no-param-reassign
options = Object(options); // Todo: sanitize
const shims = [];
- const wl = JSON.parse(JSON.stringify(options.whitelist || whitelist));
- const { shims: optionalShims, ...optionsRest } = options;
+ const {
+ shims: optionalShims,
+ whitelist: optWhitelist,
+ ...optionsRest
+ } = options;
+
+ const wl = JSON.parse(JSON.stringify(optWhitelist || whitelist));
// Forward the designated Realms options.
const realmsOptions = {};

consistency: ask orthogonal questions of options