We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the is not parsing correctly if there is a empty return in a function.
POC:
function addClass(elem){ return }
use boa::syntax::lexer::Lexer; use boa::syntax::parser::Parser; use std::fs; fn main() { let buffer = fs::read_to_string("test.js").unwrap(); let mut lexer = Lexer::new(&buffer); lexer.lex().expect("failed to lex"); let mut parser = Parser::new(lexer.tokens); println!("{:?}", parser.parse_all()); }
Error:
Err(Expected([], Token { data: Punctuator(CloseBlock), pos: Position { column_number: 1, line_number: 3 } }, "script"))
The text was updated successfully, but these errors were encountered:
Fixed empty returns (#251) (#257)
f628f4c
Successfully merging a pull request may close this issue.
the is not parsing correctly if there is a empty return in a function.
POC:
Error:
The text was updated successfully, but these errors were encountered: