Skip to content

Commit e383db6

Browse files
authoredSep 21, 2022
Fix debug.ts __debugKind check (#50871)
1 parent 01054e0 commit e383db6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/compiler/debug.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ namespace ts {
625625
];
626626

627627
for (const ctor of nodeConstructors) {
628-
if (!hasProperty(ctor, "__debugKind")) {
628+
if (!hasProperty(ctor.prototype, "__debugKind")) {
629629
Object.defineProperties(ctor.prototype, {
630630
// for use with vscode-js-debug's new customDescriptionGenerator in launch.json
631631
__tsDebuggerDisplay: {

0 commit comments

Comments
 (0)