1
Fork 0
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:
davidot 2022-01-16 02:05:32 +01:00 committed by Linus Groh
parent 30af8121ce
commit a5b11f7484
2 changed files with 23 additions and 6 deletions

View file

@ -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;