-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why we still fail to endow liveSlots #2407
Comments
We agreed that the goal state would be for the |
So concretely, this specific line should do |
Btw, even with this line corrected, we're still failing to endow |
I am open to relitigating. I would be fine with a proposal that all owned, enumerable string and symbol names of |
attn @naugtur since this is in endomoat policy enforcement. |
Last time we discussed this I was initially in favor of copying all own properties, enumerable or not.
|
endo/packages/compartment-mapper/src/policy.js
Line 31 in 59b756e
Uses
Object.keys
which only includes string-named properties.My first thought is to change it to
Reflect.ownKeys
, but this includes non-enumerable properties as well. What did we decide was correct in general for theseglobal
endowments? Should we change toReflect.ownKeys
and then filter out non-enumerables? Or should we just useReflect.ownKeys
?The text was updated successfully, but these errors were encountered: