Skip to content

Commit dcf739c

Browse files
committed
feat(ses,pass-style): use no-trapping integrity level for safety
1 parent cb1e1f6 commit dcf739c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/ses/src/permits.js

+8
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,9 @@ export const permitted = {
488488
groupBy: fn,
489489
// Seen on QuickJS
490490
__getClass: false,
491+
// https://github.com/endojs/endo/pull/2673
492+
isNoTrapping: fn,
493+
suppressTrapping: fn,
491494
},
492495

493496
'%ObjectPrototype%': {
@@ -1624,12 +1627,17 @@ export const permitted = {
16241627
set: fn,
16251628
setPrototypeOf: fn,
16261629
'@@toStringTag': 'string',
1630+
// https://github.com/endojs/endo/pull/2673
1631+
isNoTrapping: fn,
1632+
suppressTrapping: fn,
16271633
},
16281634

16291635
Proxy: {
16301636
// Properties of the Proxy Constructor
16311637
'[[Proto]]': '%FunctionPrototype%',
16321638
revocable: fn,
1639+
// https://github.com/endojs/endo/pull/2673
1640+
prototype: 'undefined',
16331641
},
16341642

16351643
// Appendix B

0 commit comments

Comments
 (0)