mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:07:46 +00:00
Shell: Do not parse history events in scripts
That makes no sense!
This commit is contained in:
parent
cad7865ad1
commit
a303b69caa
4 changed files with 11 additions and 9 deletions
|
@ -128,8 +128,8 @@ public:
|
|||
RefPtr<Line::Editor> editor() const { return m_editor; }
|
||||
|
||||
struct LocalFrame {
|
||||
LocalFrame(const String& name, HashMap<String, RefPtr<AST::Value>> variables)
|
||||
: name(name)
|
||||
LocalFrame(String name, HashMap<String, RefPtr<AST::Value>> variables)
|
||||
: name(move(name))
|
||||
, local_variables(move(variables))
|
||||
{
|
||||
}
|
||||
|
@ -243,7 +243,7 @@ public:
|
|||
return err;
|
||||
}
|
||||
void possibly_print_error() const;
|
||||
bool is_control_flow(ShellError error)
|
||||
static bool is_control_flow(ShellError error)
|
||||
{
|
||||
switch (error) {
|
||||
case ShellError::InternalControlFlowBreak:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue