Fix debug.ts __debugKind check (#50871)

This commit is contained in:
Jake Bailey
2022-09-20 22:48:52 -07:00
committed by GitHub
parent 01054e05ab
commit e383db692e

View File

@@ -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: {