Fix build-wasm command on latest emscripten

This commit is contained in:
Max Brunsfeld 2020-05-12 15:42:11 -07:00
parent da7bf8debb
commit cdc973866f
2 changed files with 16 additions and 24 deletions

View file

@ -759,7 +759,7 @@ impl Generator {
&& state.terminal_entries.len() == 1
&& *state.terminal_entries.iter().next().unwrap().0 == Symbol::end()
{
add_line!(self, "[{}] = {{-1}},", i,);
add_line!(self, "[{}] = {{(TSStateId)(-1)}},", i,);
} else if state.external_lex_state_id > 0 {
add_line!(
self,