Skip to content

Commit

Permalink
Fix debug.ts __debugKind check (#50871)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Sep 21, 2022
1 parent 01054e0 commit e383db6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/debug.ts
Expand Up @@ -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: {
Expand Down

0 comments on commit e383db6

Please sign in to comment.