Andreas Kling
44221756ab
LibJS: Drop "Record" suffix from all the *Environment record classes
...
"Records" in the spec are basically C++ classes, so let's drop this
mouthful of a suffix.
2021-07-01 12:28:57 +02:00
Idan Horowitz
5606332ed7
LibJS: Add a [[Realm]] getter to FunctionObject and use it where needed
...
Defined by https://tc39.es/ecma262/#sec-ordinaryfunctioncreate step #17
and by https://tc39.es/ecma262/#sec-createbuiltinfunction step #6 .
2021-06-30 18:41:32 +01:00
Andreas Kling
d1ffeaf66d
LibJS: Use CreateUnmappedArgumentsObject for non-simple parameter lists
...
This patch implements the IsSimpleParameterList static semantics for
ordinary function objects.
We now also create an unmapped arguments object for callee contexts
with non-simple parameter lists, instead of only doing it in strict
mode. Covered by test262.
2021-06-28 12:18:58 +02:00
Andreas Kling
c8270dbe2e
LibJS: Rename ScriptFunction => OrdinaryFunctionObject
...
These are basically what the spec calls "ordinary function objects",
so let's have the name reflect that. :^)
2021-06-27 22:36:04 +02:00