0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-22 21:23:32 -05:00
denoland-deno/cli/tools/lint/ast_buffer
Marvin Hagemeister 703fdd8607
fix: panic with js lint plugins and invalid js syntax (#28006)
Noticed that the LSP might panic during serialization when working on a
file with a syntax error.

This PR changes the serialization so that invalid nodes are simply
serialized to the invalid node `0`. The plugin code treats the node with
id `0` as an invalid node and will ignore it during visiting.

I'm not sure how to write a test for the LSP.
2025-02-07 12:35:44 +01:00
..
buffer.rs feat(unstable): align lint ast with TSEStree (#27996) 2025-02-06 21:45:56 +01:00
mod.rs feat(lint): add JavaScript plugin support (#27203) 2025-02-05 16:59:24 +01:00
swc.rs fix: panic with js lint plugins and invalid js syntax (#28006) 2025-02-07 12:35:44 +01:00
ts_estree.rs feat(unstable): align lint ast with TSEStree (#27996) 2025-02-06 21:45:56 +01:00