mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +00:00
Shell: Do not leak the value of ARGV in nested function calls
This commit is contained in:
parent
e87e580eb3
commit
1aed61964a
3 changed files with 30 additions and 11 deletions
|
@ -103,8 +103,8 @@ public:
|
|||
RefPtr<AST::Value> get_argument(size_t);
|
||||
RefPtr<AST::Value> lookup_local_variable(const String&);
|
||||
String local_variable_or(const String&, const String&);
|
||||
void set_local_variable(const String&, RefPtr<AST::Value>);
|
||||
void unset_local_variable(const String&);
|
||||
void set_local_variable(const String&, RefPtr<AST::Value>, bool only_in_current_frame = false);
|
||||
void unset_local_variable(const String&, bool only_in_current_frame = false);
|
||||
|
||||
void define_function(String name, Vector<String> argnames, RefPtr<AST::Node> body);
|
||||
bool has_function(const String&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue