1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:38:10 +00:00
serenity/Libraries/LibJS
Linus Groh 624eaa32af LibJS: Add Parser::syntax_error() helper
Instead of having fprintf()s all over the place we can now use
syntax_error("message") or syntax_error("message", line, column).

This takes care of a consistent format, appending a newline and getting
the line number and column of the current token if the last two params
are omitted.
2020-04-30 08:41:31 +02:00
..
Heap LibJS: Add MarkedValueList and use it for argument passing 2020-04-19 17:34:33 +02:00
Runtime LibJS: Make String.prototype.slice() generic 2020-04-29 19:14:36 +02:00
Tests LibJS: Make String.prototype.slice() generic 2020-04-29 19:14:36 +02:00
AST.cpp LibJS: Implement correct object property ordering 2020-04-29 18:47:03 +02:00
AST.h LibJS: Add spreading in object literals 2020-04-28 20:37:21 +02:00
Forward.h LibJS: Add Reference class to represent a base.property reference 2020-04-28 15:07:08 +02:00
Interpreter.cpp LibJS: Pass JS::Function around by reference more 2020-04-29 13:43:57 +02:00
Interpreter.h LibJS: Pass JS::Function around by reference more 2020-04-29 13:43:57 +02:00
Lexer.cpp LibJS: Add spreading in array literals 2020-04-27 11:32:18 +02:00
Lexer.h LibJS: Handle HTML-style comments 2020-04-14 12:54:09 +02:00
Makefile LibJS: Make AssignmentExpression assign through a Reference 2020-04-28 15:07:08 +02:00
Parser.cpp LibJS: Add Parser::syntax_error() helper 2020-04-30 08:41:31 +02:00
Parser.h LibJS: Add Parser::syntax_error() helper 2020-04-30 08:41:31 +02:00
Token.cpp LibJS: Add TokenType::TemplateLiteral 2020-04-24 11:18:57 +02:00
Token.h LibJS: Add spreading in array literals 2020-04-27 11:32:18 +02:00