ladybird/Libraries/LibJS
Andreas Kling c60dc84a33 LibJS: Allow function calls with missing arguments
We were interpreting "undefined" as a variable lookup failure in some
cases and throwing a ReferenceError exception instead of treating it
as the valid value "undefined".

This patch wraps the result of variable lookup in Optional<>, which
allows us to only throw ReferenceError when lookup actually fails.
2020-03-27 12:56:05 +01:00
..
Heap LibJS: Disable HEAP_DEBUG logging on non-SerenityOS platforms 2020-03-25 09:49:14 +01:00
Runtime LibJS: Allow function calls with missing arguments 2020-03-27 12:56:05 +01:00
Tests LibJS: Allow function calls with missing arguments 2020-03-27 12:56:05 +01:00
AST.cpp LibJS: Allow function calls with missing arguments 2020-03-27 12:56:05 +01:00
AST.h LibJS: Implement "throw" 2020-03-24 22:21:58 +01:00
Forward.h LibJS: Implement "throw" 2020-03-24 22:21:58 +01:00
Interpreter.cpp LibJS: Allow function calls with missing arguments 2020-03-27 12:56:05 +01:00
Interpreter.h LibJS: Allow function calls with missing arguments 2020-03-27 12:56:05 +01:00
Lexer.cpp LibJS: Implement "throw" 2020-03-24 22:21:58 +01:00
Lexer.h LibJS: Lex single quote strings, escaped chars and unterminated strings 2020-03-14 12:13:53 +01:00
Makefile LibJS: Implement "throw" 2020-03-24 22:21:58 +01:00
Parser.cpp LibJS: Handle "for" statements with empty initializer and updater 2020-03-25 16:14:51 +01:00
Parser.h LibJS: Implement "throw" 2020-03-24 22:21:58 +01:00
Token.cpp LibJS: Parse object expressions 2020-03-21 10:08:58 +01:00
Token.h LibJS: Implement "throw" 2020-03-24 22:21:58 +01:00