mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-27 21:21:50 +03:00
LibJS: Add VM::active_function_object()
This commit is contained in:
parent
0c73fbbba5
commit
710de821e7
Notes:
sideshowbarker
2024-07-17 20:48:48 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/710de821e7f Pull-request: https://github.com/SerenityOS/serenity/pull/11929 Reviewed-by: https://github.com/IdanHo Reviewed-by: https://github.com/davidot ✅
@ -123,6 +123,11 @@ public:
|
||||
Realm const* current_realm() const { return running_execution_context().realm; }
|
||||
Realm* current_realm() { return running_execution_context().realm; }
|
||||
|
||||
// https://tc39.es/ecma262/#active-function-object
|
||||
// The value of the Function component of the running execution context is also called the active function object.
|
||||
FunctionObject const* active_function_object() const { return running_execution_context().function; }
|
||||
FunctionObject* active_function_object() { return running_execution_context().function; }
|
||||
|
||||
bool in_strict_mode() const;
|
||||
|
||||
size_t argument_count() const
|
||||
|
Loading…
Reference in New Issue
Block a user