mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:27:34 +00:00
LibJS: Fix that '_' no longer accessed the last value in the REPL
This is now also not a concept that VM knows about and handled completely by the REPL.
This commit is contained in:
parent
30af8121ce
commit
a5b11f7484
2 changed files with 23 additions and 6 deletions
|
@ -156,9 +156,6 @@ public:
|
|||
|
||||
const StackInfo& stack_info() const { return m_stack_info; };
|
||||
|
||||
bool underscore_is_last_value() const { return m_underscore_is_last_value; }
|
||||
void set_underscore_is_last_value(bool b) { m_underscore_is_last_value = b; }
|
||||
|
||||
u32 execution_generation() const { return m_execution_generation; }
|
||||
void finish_execution_generation() { ++m_execution_generation; }
|
||||
|
||||
|
@ -279,8 +276,6 @@ private:
|
|||
JS_ENUMERATE_WELL_KNOWN_SYMBOLS
|
||||
#undef __JS_ENUMERATE
|
||||
|
||||
bool m_underscore_is_last_value { false };
|
||||
|
||||
u32 m_execution_generation { 0 };
|
||||
|
||||
OwnPtr<CustomData> m_custom_data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue