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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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