File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -96,9 +96,8 @@ export const isExpression: Predicate<Expression> = isIntersectionOf([
96
96
type TemplateSubstitutions = any [ ] ;
97
97
98
98
class ExpressionImpl extends String implements ExpressionProps {
99
- declare [ Symbol . toStringTag ] : "Expression" ;
100
- static {
101
- this . prototype [ Symbol . toStringTag ] = "Expression" ;
99
+ get [ Symbol . toStringTag ] ( ) {
100
+ return "Expression" as const ;
102
101
}
103
102
104
103
[ vimExpressionOf ] ( ) : string {
Original file line number Diff line number Diff line change @@ -129,9 +129,8 @@ export const isRawString: Predicate<RawString> = isIntersectionOf([
129
129
type TemplateSubstitutions = any [ ] ;
130
130
131
131
class RawStringImpl extends String implements RawStringProps {
132
- declare [ Symbol . toStringTag ] : "RawString" ;
133
- static {
134
- this . prototype [ Symbol . toStringTag ] = "RawString" ;
132
+ get [ Symbol . toStringTag ] ( ) {
133
+ return "RawString" as const ;
135
134
}
136
135
137
136
#cached?: string ;
You can’t perform that action at this time.
0 commit comments