summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/VM.h
diff options
context:
space:
mode:
authorJean-Baptiste Boric <jblbeurope@gmail.com>2021-02-28 10:45:26 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-01 11:14:36 +0100
commit6172cb35994718651f91e79a53bbd792f29846b9 (patch)
tree4eaa0ee9a4c1c3188a353c356e5c18cf7f11ee8c /Userland/Libraries/LibJS/Runtime/VM.h
parent0039ecb1897ce7b3390e915fe2442fb2e7440a18 (diff)
downloadserenity-6172cb35994718651f91e79a53bbd792f29846b9.zip
LibJS: Keep track of current AST node inside the call stack
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/VM.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/VM.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/VM.h b/Userland/Libraries/LibJS/Runtime/VM.h
index 571703ec93..745329ae73 100644
--- a/Userland/Libraries/LibJS/Runtime/VM.h
+++ b/Userland/Libraries/LibJS/Runtime/VM.h
@@ -56,6 +56,7 @@ struct ScopeFrame {
};
struct CallFrame {
+ const ASTNode* current_node;
FlyString function_name;
Value this_value;
Vector<Value> arguments;