enum repaired
This commit is contained in:
parent
67d2d01075
commit
c26931c8df
@ -37,7 +37,7 @@ function Enum(...labels) {
|
|||||||
const e = {}
|
const e = {}
|
||||||
let i = 0
|
let i = 0
|
||||||
for (const label of labels) {
|
for (const label of labels) {
|
||||||
e[e[label] = i] = label;
|
e[e[label] = i++] = label;
|
||||||
}
|
}
|
||||||
return e
|
return e
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user