Closed larsgw closed 5 years ago
Hey, thanks for the bug report! Which version is this on?
Sent with GitHawk
Thanks for the quick reply! I'm on the master
branch, it seems to work fine on v0.4.3
. However, all the docs (mostly those on keywords) are for the master branch, so I use that one at the moment. Example code:
moo.states({
main: {
a: 'a',
b: 'b'
}
})
I'm getting the following error:
I believe it has to do with this line redefining
keys
, due to hoisting. Changing that variable and references to it to for examplekeysFast
seems to work.https://github.com/no-context/moo/blob/8b5064009b1eff7e37f097a8d562c663c404c332/moo.js#L313-L316