1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:38:11 +00:00
serenity/Libraries/LibJS
Andreas Kling 7c4e53f31e LibJS: Rework how native functions are called to improve |this| value
Native functions now only get the Interpreter& as an argument. They can
then extract |this| along with any indexed arguments it wants from it.

This forces functions that want |this| to actually deal with calling
interpreter.this_value().to_object(), and dealing with the possibility
of a non-object |this|.

This is still not great but let's keep massaging it forward.
2020-03-28 22:51:09 +01:00
..
Heap LibJS: Disable HEAP_DEBUG logging on non-SerenityOS platforms 2020-03-25 09:49:14 +01:00
Runtime LibJS: Rework how native functions are called to improve |this| value 2020-03-28 22:51:09 +01:00
Tests LibJS: Implement Array.prototype.{shift,pop} 2020-03-28 22:18:11 +01:00
AST.cpp LibJS: Rework how native functions are called to improve |this| value 2020-03-28 22:51:09 +01:00
AST.h LibJS: Implement the "instanceof" operator 2020-03-28 16:56:54 +01:00
Forward.h LibJS: Implement "throw" 2020-03-24 22:21:58 +01:00
Interpreter.cpp LibJS: Rework how native functions are called to improve |this| value 2020-03-28 22:51:09 +01:00
Interpreter.h LibJS: Rework how native functions are called to improve |this| value 2020-03-28 22:51:09 +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: Add a global "Object" constructor 2020-03-28 17:23:54 +01:00
Parser.cpp LibJS: Implement the "instanceof" operator 2020-03-28 16:56:54 +01:00
Parser.h LibJS: Implement basic support for the "new" keyword 2020-03-28 16:33:52 +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