Skip to content
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

Missing platform ability: Function.prototype.toString() censorship #7

Open
domenic opened this issue Mar 16, 2018 · 0 comments
Open
Labels
missing platform ability A missing web platform API that is necessary for writing LAPIs

Comments

@domenic
Copy link
Collaborator

domenic commented Mar 16, 2018

The current async local storage spec requires censoring the toString() output of all functions it produces. This ensures that multiple implementations of the spec can cooexist without being observably different.

However, this is not an ability available to web developers today, and thus this requirement violates the rule of layered APIs that they must not use any magic.

I think the solution to this is to advance https://github.com/domenic/proposal-function-prototype-tostring-censorship, either the in-source-file pragma version, or some per-source-file header version, and thus give this ability to web developers as well.

@domenic domenic added the missing platform ability A missing web platform API that is necessary for writing LAPIs label May 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
missing platform ability A missing web platform API that is necessary for writing LAPIs
Projects
None yet
Development

No branches or pull requests

1 participant