1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 18:15:07 +00:00
serenity/Libraries/LibJS
Marcin Gasperowicz 99991761fd LibJS: add Array.prototype.reduceRight()
This patch adds `Array.prototype.reduceRight()` method to LibJS Runtime. The implementation is (to my best knowledge) conformant to https://tc39.es/ecma262/#sec-array.prototype.reduceright.

Short test in `LibJS/Tests/Array.prototype-generic-functions.js` demonstrates that the function can be applied to other objects besides `Array`.
2020-05-24 20:58:14 +02:00
..
Heap LibJS: Use __APPLE__ instead of __MACH__ for MacOS build 2020-05-23 18:09:07 +02:00
Runtime LibJS: add Array.prototype.reduceRight() 2020-05-24 20:58:14 +02:00
Tests LibJS: add Array.prototype.reduceRight() 2020-05-24 20:58:14 +02:00
AST.cpp LibJS: Refactor Accessor 2020-05-24 18:49:58 +02:00
AST.h LibJS: Add object literal getter/setter shorthand 2020-05-22 10:59:05 +02:00
CMakeLists.txt LibJS: Add symbol objects 2020-05-17 18:05:15 +02:00
Console.cpp LibJS: Add side-effect-free version of Value::to_string() 2020-05-15 13:50:42 +02:00
Console.h LibJS: Implement ConsoleClient 2020-05-05 09:15:16 +02:00
Forward.h LibJS: Add getter/setter support 2020-05-21 22:56:18 +02:00
Interpreter.cpp LibJS: Add symbol objects 2020-05-17 18:05:15 +02:00
Interpreter.h Browser: Add JS Console 2020-05-24 02:20:08 +02:00
Lexer.cpp LibJS: Remove syntax errors from lexer 2020-05-15 09:53:52 +02:00
Lexer.h LibJS: Remove syntax errors from lexer 2020-05-15 09:53:52 +02:00
Parser.cpp LibJS: Add object literal getter/setter shorthand 2020-05-22 10:59:05 +02:00
Parser.h LibJS: Handle hex and unicode escape sequences in string literals 2020-05-18 17:58:17 +02:00
Token.cpp LibJS: Handle hex and unicode escape sequences in string literals 2020-05-18 17:58:17 +02:00
Token.h LibJS: Handle hex and unicode escape sequences in string literals 2020-05-18 17:58:17 +02:00