-
Notifications
You must be signed in to change notification settings - Fork 238
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
Non-standard properties found and removed #523
Comments
@erights -- interesting report, thank you. I'll address some of these immediately.
These are light versions of what browsers today provide with
This is similar to the string/array buffer methods above.
This returns the number of significant bits in a
These are an initial implementation of our integer math proposal, currently at Stage 1. ;)
This can be implemented in user code, but is more efficient in the native implementation and that matters to us. I don't know the committee would find it relevant given that ArrayBuffers are obscure on the web to begin with.
I don't see these in my tests. How are you finding these?
These appear to be a mistake and should be removed.
This is the final vestige of a JavaScript sandbox we used some time ago, a kind of predecessor to SES. It should be removed.
These may be removable, but a require a little more time, and likely a run of test262 for a definitive answer. |
// const f = Array.prototype.reverse;
const f = Array.prototype.sort;
const names = Object.getOwnPropertySymbols(f).map(String);
console.log(JSON.stringify(names)); prints |
See endojs/endo#549 |
@erights - FWIW, when I run the lines above in our helloworld example, it prints |
I am indeed testing with xsnap. Thanks. |
Today's push removes the following:
The other APIs remain as they are useful for the purposes described above. You'll need to do a full, clean rebuild of both XS tools and your projects after updating because this is a minor version update to XS. |
Are you sure you removed On the others you list, verified. |
My mistake. We use Array.prototype.concat so it remains. It can be safely deleted, however. |
All the ones in my original list that remain can be safely deleted? |
Under the assumption that all the remainder on my original list can be safely deleted, closing. Thanks! |
Yes, that is correct. (If you find otherwise, just leet us know.) |
More such properties seen recently by @gibson042
See endojs/endo#2070 |
The following non-standard properties were found on the XS primordials. The SES-shim initialization package run on XS correctly does not find them on the SES whitelist and so deletes them. This issue isn't exactly a bug report since an implementation may provide extra properties that can be deleted, and we do successfully delete all of these.
Why are they present in the first place? Should we expect everything else to continue to work fine after they are deleted? Are any of these sufficiently useful and general that they should be proposed for eventual standardization?
The text was updated successfully, but these errors were encountered: