mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:27:43 +00:00
LibJS: Remove direct argument loading since it was buggy
The parser doesn't always track lexical scopes correctly, so let's not rely on that for direct argument loading. This reverts the LoadArguments bytecode instruction as well. We can bring these things back when the parser can reliably tell us that a given Identifier is indeed a function argument.
This commit is contained in:
parent
1082e99e08
commit
8a3c9d9851
9 changed files with 4 additions and 79 deletions
|
@ -40,15 +40,6 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
enum CallFrameArgumentTag { CallFrameArgument };
|
||||
Reference(CallFrameArgumentTag, size_t index, FlyString const& name)
|
||||
: m_base(js_null())
|
||||
, m_name(name)
|
||||
, m_call_frame_argument_index(index)
|
||||
, m_local_variable(true)
|
||||
{
|
||||
}
|
||||
|
||||
Value base() const { return m_base; }
|
||||
const PropertyName& name() const { return m_name; }
|
||||
bool is_strict() const { return m_strict; }
|
||||
|
@ -83,7 +74,6 @@ private:
|
|||
|
||||
Value m_base;
|
||||
PropertyName m_name;
|
||||
Optional<size_t> m_call_frame_argument_index;
|
||||
bool m_strict { false };
|
||||
bool m_local_variable { false };
|
||||
bool m_global_variable { false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue