diff --git a/packages/ses/test/test-frozen-anon-intrinsics.js b/packages/ses/test/test-frozen-anon-intrinsics.js new file mode 100644 index 0000000000..c628e12c13 --- /dev/null +++ b/packages/ses/test/test-frozen-anon-intrinsics.js @@ -0,0 +1,19 @@ +import test from 'ava'; +import '../index.js'; + +function makeArguments() { + // eslint-disable-next-line prefer-rest-params + return arguments; +} + +test.before(() => { + lockdown(); +}); + +test('arguments.callee getter is frozen', t => { + t.truthy( + Object.isFrozen( + Object.getOwnPropertyDescriptor(makeArguments(), 'callee').get, + ), + ); +});