Skip to content

Commit

Permalink
feat(ses): restrict dynamic permit on Hermes
Browse files Browse the repository at this point in the history
Co-authored-by: Mark S. Miller <[email protected]>
  • Loading branch information
leotm and erights authored Dec 19, 2024
1 parent c78e1ad commit 89b3166
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/ses/src/permits.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@ const strict = function () {
'use strict';
};

arrayForEach(getOwnPropertyNames(strict), prop => {
// TODO Remove this once we no longer support the Hermes that needed this.
arrayForEach(['caller', 'arguments'], prop => {
try {
strict[prop];
} catch (e) {
Expand Down

0 comments on commit 89b3166

Please sign in to comment.