mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:18:11 +00:00
![]() Currently we would create an empty array of size 0 and appening results of the callback function while skipping empty values. This is incorrect, we should be initializing a full array of the correct size beforehand and then inserting the results while still skipping empty values. Wrong: new Array(5).map(() => {}) // [] Right: new Array(5).map(() => {}) // [<empty> * 5] |
||
---|---|---|
.. | ||
Heap | ||
Runtime | ||
Tests | ||
AST.cpp | ||
AST.h | ||
Forward.h | ||
Interpreter.cpp | ||
Interpreter.h | ||
Lexer.cpp | ||
Lexer.h | ||
Makefile | ||
Parser.cpp | ||
Parser.h | ||
Token.cpp | ||
Token.h |