mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
Fix debug.ts __debugKind check (#50871)
This commit is contained in:
@@ -625,7 +625,7 @@ namespace ts {
|
||||
];
|
||||
|
||||
for (const ctor of nodeConstructors) {
|
||||
if (!hasProperty(ctor, "__debugKind")) {
|
||||
if (!hasProperty(ctor.prototype, "__debugKind")) {
|
||||
Object.defineProperties(ctor.prototype, {
|
||||
// for use with vscode-js-debug's new customDescriptionGenerator in launch.json
|
||||
__tsDebuggerDisplay: {
|
||||
|
||||
Reference in New Issue
Block a user