1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:37:35 +00:00

LibJS: Implement the CreateListFromArrayLike() abstract operation

We already have two separate implementations of this, so let's do it
properly. The optional value type check is done by a callback function
that returns Result<void, ErrorType> - value type accepted or message
for TypeError, that is.
This commit is contained in:
Linus Groh 2021-06-09 23:27:01 +01:00
parent 5da94b30eb
commit ad7aa05cc6
3 changed files with 36 additions and 0 deletions

View file

@ -111,6 +111,7 @@ class Cell;
class Console;
class DeferGC;
class Error;
class ErrorType;
class Exception;
class Expression;
class Accessor;