diff --git a/packages/ses/test/test-frozen-primordials.js b/packages/ses/test/test-frozen-primordials.js index 16c31cea99..7307a03454 100644 --- a/packages/ses/test/test-frozen-primordials.js +++ b/packages/ses/test/test-frozen-primordials.js @@ -2,9 +2,11 @@ import test from 'ava'; import '../index.js'; import { getOwnPropertyDescriptor } from '../src/commons.js'; -test('check if override-protected primordials are frozen', t => { +test.before(() => { lockdown(); +}); +test('check if override-protected primordials are frozen', t => { // After removing the detachedProperties mechanism and without // the originalValue mechanism, this test failed. t.truthy(Object.isFrozen(Object.prototype.toString)); @@ -12,3 +14,10 @@ test('check if override-protected primordials are frozen', t => { const desc = getOwnPropertyDescriptor(Object.prototype, 'toString'); t.is(desc.get.originalValue, Object.prototype.toString); }); + +test('check if arguments prototype is frozen', t => { + (function gimmeArguments() { + // eslint-disable-next-line no-proto + t.truthy(Object.isFrozen(arguments.__proto__)); + })(); +});