-
Notifications
You must be signed in to change notification settings - Fork 72
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
Repair some builtin prototypes in order to tolerate the "override mistake" #188
Comments
At https://github.com/Agoric/SES/blob/master/src/index.js there is a commented out call to |
@bmeck @littledan , where is a good place to track this issue? Could you reply with a link? Thanks. |
Sorry. By "this issue" I mean the attempt to fix the override mistake in the EcmaScript spec, which is only distantly related to this issue. Nevertheless, it would be nice to have a link here. Thanks. |
tc39/ecma262#1320 is probably the best place currently as it deals w/ the spec changes 1307 can probably closed in lieu of it. |
Hi @jfparadis , did you say that your data suggested we only need this repair on For the prototypes we do repair, which properties should we repair? |
Here is the current list: |
Thanks. Do you have any data on which properties on these prototypes could remain unrepaired? |
All prototype properties of Object and Array need to me repaired because arrays are often used as objects, and any property can be set on objects to allow compatibility. For the rest, we can only repair Function 'name' and Error 'message'. |
found
After finding the history, I think |
Newer than tamper-proof.js, yes. But not the newest. Waiting from responses from @caridy @jdalton @jfparadis @guybedford @bmeck |
node is currently using https://github.com/nodejs/node/blob/554ffa34320ebfe62e6eefd4607483866362efd3/lib/internal/freeze_intrinsics.js#L253 but can align with w/e is preferred. |
I like the name |
@erights Commenting as requested by @caridy - Salesforce's Locker uses a customized version of
For these prototypes we apply
And for these prototypes we apply
|
We omitted the tamperProof.js file (to fix the override mistake) when we built SES out of Realms instead of FrozenRealms, we need to pull that in.
The text was updated successfully, but these errors were encountered: