From e383db692eb44561333c1bbe353788b337aebc99 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Tue, 20 Sep 2022 22:48:52 -0700 Subject: [PATCH] Fix debug.ts __debugKind check (#50871) --- src/compiler/debug.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/debug.ts b/src/compiler/debug.ts index 70893ceb29bc1..a4f900f45e141 100644 --- a/src/compiler/debug.ts +++ b/src/compiler/debug.ts @@ -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: {