-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Deno.customInspect should be replaced with "denoCustomInspect" #9294
Comments
I'm strongly opposed to this. This is exactly what symbols were created for, so that objects don't need to be polluted with string property names that could collide, or be potentially observable in strange ways. For internal runtime use, the "degrade to the web" is a non argument. For |
I disagree that
I'm not sure what this means, I'm talking about users being able to write a user-space module that is both isomorphic and implements a custom inspect for Deno. Specifically because I think the semantics of custom inspect align with that. The name conflict is a problem, but it can only be mitigated if it the key is to work on both platforms. If |
I share the concern that @nayeemrmn brings up. It is unfortunate if modules require a Deno namespace polyfill, just because they want to enhance the experience for Deno users. This is not really great progressive enhancement. What about |
👍 |
I think we can add this in the next minor release (1.8) and add a |
Closed in #10035 (went with |
This should be a progressively enhanced thing like
WorkerOptions::deno
. It should no-op in browsers, not require verbose feature detection to be compatible.I think the alias should be made and
Deno.customInspect
should be deprecated for 1.8.0, and the latter should be removed for 2.0.The text was updated successfully, but these errors were encountered: