fix(wasm): fix alias map size computation
This fixes a crash where parsing with certain languages can lead to a crash due to how the alias map was allocated and laid out in wasm memory
This commit is contained in:
parent
f222db57ce
commit
f09dc3cf46
7 changed files with 80 additions and 26 deletions
|
|
@ -773,7 +773,6 @@ impl Loader {
|
|||
if recompile {
|
||||
self.compile_parser_to_wasm(
|
||||
&config.name,
|
||||
None,
|
||||
config.src_path,
|
||||
config
|
||||
.scanner_path
|
||||
|
|
@ -1026,7 +1025,6 @@ impl Loader {
|
|||
pub fn compile_parser_to_wasm(
|
||||
&self,
|
||||
language_name: &str,
|
||||
_root_path: Option<&Path>,
|
||||
src_path: &Path,
|
||||
scanner_filename: Option<&Path>,
|
||||
output_path: &Path,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue