Fix build-wasm command on latest emscripten
This commit is contained in:
parent
da7bf8debb
commit
cdc973866f
2 changed files with 16 additions and 24 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue