File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -69,11 +69,11 @@ export function isIdContinue(cp: number): boolean {
69
69
}
70
70
71
71
function isLargeIdStart(cp: number): boolean {
72
- return isInRange(cp, largeIdStartRanges || (largeIdStartRanges = initLargeIdStartRanges()))
72
+ return isInRange(cp, largeIdStartRanges ?? (largeIdStartRanges = initLargeIdStartRanges()))
73
73
}
74
74
75
75
function isLargeIdContinue(cp: number): boolean {
76
- return isInRange(cp, largeIdContinueRanges || (largeIdContinueRanges = initLargeIdContinueRanges()))
76
+ return isInRange(cp, largeIdContinueRanges ?? (largeIdContinueRanges = initLargeIdContinueRanges()))
77
77
}
78
78
79
79
function initLargeIdStartRanges(): number[] {
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ function makeClassDeclarationCode(versions: string[]): string {
195
195
const getters = versions
196
196
. map (
197
197
( v ) =>
198
- `public get es${ v } (): Set<string> { return this._set${ v } || (this._set${ v } = new Set(this._raw${ v } .split(" "))) }` ,
198
+ `public get es${ v } (): Set<string> { return this._set${ v } ?? (this._set${ v } = new Set(this._raw${ v } .split(" "))) }` ,
199
199
)
200
200
. join ( "\n" )
201
201
You can’t perform that action at this time.
0 commit comments