We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f88a0b commit 0afa252Copy full SHA for 0afa252
scripts/const-enum.js
@@ -149,10 +149,9 @@ export function scanEnums() {
149
} else {
150
if (lastInitialized === undefined) {
151
// first initialized
152
- saveValue(`0`)
153
- lastInitialized = 0
+ saveValue((lastInitialized = 0))
154
} else if (typeof lastInitialized === 'number') {
155
- saveValue(String(++lastInitialized))
+ saveValue(++lastInitialized)
156
157
// should not happen
158
throw new Error(`wrong enum initialization sequence in ${file}`)
0 commit comments