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

LibJS: Implement a very hackish "arguments" object

We now lazily create an "arguments" array inside functions when code
tries to access it.

This doesn't follow the spec at all but still covers a lot of the
basic uses of arguments, i.e "arguments.length" and "arguments[n]"
This commit is contained in:
Andreas Kling 2020-12-05 16:38:29 +01:00
parent e6dadd9e5b
commit cc14b5a6d7
4 changed files with 39 additions and 0 deletions

View file

@ -62,6 +62,7 @@ namespace JS {
P(abs) \
P(acosh) \
P(apply) \
P(arguments) \
P(asIntN) \
P(asUintN) \
P(asinh) \