Skip to content

Commit

Permalink
feat(ses,pass-style): use no-trapping integrity level for safety
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Dec 31, 2024
1 parent 5c38d8c commit 128ef21
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/ses/src/permits.js
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,9 @@ export const permitted = {
groupBy: fn,
// Seen on QuickJS
__getClass: false,
// https://github.com/endojs/endo/pull/2673
isNoTrapping: fn,
suppressTrapping: fn,
},

'%ObjectPrototype%': {
Expand Down Expand Up @@ -1624,12 +1627,17 @@ export const permitted = {
set: fn,
setPrototypeOf: fn,
'@@toStringTag': 'string',
// https://github.com/endojs/endo/pull/2673
isNoTrapping: fn,
suppressTrapping: fn,
},

Proxy: {
// Properties of the Proxy Constructor
'[[Proto]]': '%FunctionPrototype%',
revocable: fn,
// https://github.com/endojs/endo/pull/2673
prototype: 'undefined',
},

// Appendix B
Expand Down

0 comments on commit 128ef21

Please sign in to comment.