test(ses): Adjust expectations of fidelity for global unscopables
MODIFY
packages/ses/test/test-confinement.js
packages/ses/test/test-confinement.js
@@ -72,9 +72,11 @@ test('confinement evaluation Symbol.unscopables with-statement escape', t => {
const c = new Compartment({ flag: 'safe' });
t.is(c.evaluate('Symbol.unscopables'), Symbol.unscopables);
+ // This modification causes a loss of shim fidelity, but not a loss of
+ // security.
t.is(
c.evaluate('globalThis[Symbol.unscopables] = { flag: true }; flag'),
- 'safe',
+ undefined,
);
delete globalThis.flag;

test(ses): Adjust expectations of fidelity for global unscopables