Skip to content

Commit 69cc1cb

Browse files
authored
chore: refactor ensureConstructor with CommonNames instead of raw string (#2935)
1 parent ef01f2b commit 69cc1cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8830,7 +8830,7 @@ export class Compiler extends DiagnosticEmitter {
88308830
classInstance.constructorInstance = instance;
88318831
let members = classInstance.members;
88328832
if (!members) classInstance.members = members = new Map();
8833-
members.set("constructor", instance.prototype);
8833+
members.set(CommonNames.constructor, instance.prototype);
88348834

88358835
let previousFlow = this.currentFlow;
88368836
let flow = instance.flow;

0 commit comments

Comments
 (0)