LibJS+LibWeb: Remove last uses of GlobalObject::associated_realm()

This commit is contained in:
Linus Groh 2022-08-27 01:03:50 +01:00
parent 50428ea8d2
commit 61bd9fef7d
Notes: sideshowbarker 2024-07-17 08:36:27 +09:00
3 changed files with 4 additions and 5 deletions

View file

@ -61,7 +61,7 @@ ECMAScriptFunctionObject::ECMAScriptFunctionObject(FlyString name, String source
, m_private_environment(private_environment)
, m_formal_parameters(move(formal_parameters))
, m_ecmascript_code(ecmascript_code)
, m_realm(global_object().associated_realm())
, m_realm(&prototype.shape().realm())
, m_source_text(move(source_text))
, m_class_field_initializer_name(move(class_field_initializer_name))
, m_strict(strict)