Skip to content

Deno.customInspect should be replaced with "denoCustomInspect" #9294

Closed
@nayeemrmn

Description

@nayeemrmn
  class Foo {
-   [Deno.customInspect]() {
+   denoCustomInspect() {
      return "foo";
    }
  }

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featnew feature (which has been agreed to/accepted)runtimeRelates to code in the runtime crate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions