mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
LibJS: Set the callee context's realm in prepare_for_ordinary_call()
This includes making FunctionObject::realm() actually return a Realm, instead of a GlobalObject.
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 22:57:59 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/06e89311fa0 Pull-request: https://github.com/SerenityOS/serenity/pull/9980 Reviewed-by: https://github.com/awesomekling ✅
@@ -43,7 +43,7 @@ OrdinaryFunctionObject::OrdinaryFunctionObject(GlobalObject& global_object, cons
|
||||
, m_body(body)
|
||||
, m_parameters(move(parameters))
|
||||
, m_environment(parent_scope)
|
||||
, m_realm(&global_object)
|
||||
, m_realm(vm().current_realm())
|
||||
, m_function_length(function_length)
|
||||
, m_kind(kind)
|
||||
, m_is_strict(is_strict)
|
||||
|
||||
Reference in New Issue
Block a user