js-temporal / temporal-polyfill

Polyfill for Temporal (under construction)
ISC License
528 stars 28 forks source link

VSCode debugger's new `Symbol.for("debug.description")` property for debug descriptions #261

Open justingrant opened 1 year ago

justingrant commented 1 year ago

VSCode's debugger now has a new way of exposing the string representation of an object inside a debugger, using a new symbol property. I assume we should support this? See https://github.com/microsoft/vscode-js-debug/pull/1775.

12wrigja commented 1 year ago

Yep - probably the exact same way we support the existing NodeJS symbol: https://github.com/js-temporal/temporal-polyfill/blob/bf2b199d3eed630674c8389f5fd4d0548566a467/lib/intrinsicclass.ts#L108

12wrigja commented 1 year ago

Though, our current bundles don't include any of this code by default, so I'm wondering how much value all these debug-only things are bringing.

Are there other packages that have a sensible "for debugging" different build / configuration that we could borrow from?