mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibJS: Make stored realm in NativeFunction non-null
We now always have a realm for NativeFunction, which allows removing an old hack in internal_call and internal_construct.
This commit is contained in:
parent
354888640d
commit
899c6ebffc
Notes:
github-actions[bot]
2025-11-30 10:56:19 +00:00
Author: https://github.com/Lubrsi
Commit: 899c6ebffc
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6728
Reviewed-by: https://github.com/Hendiadyoin1
Reviewed-by: https://github.com/awesomekling
2 changed files with 7 additions and 27 deletions
|
|
@ -67,7 +67,7 @@ private:
|
|||
Optional<Utf16FlyString> m_initial_name; // [[InitialName]]
|
||||
Optional<Bytecode::Builtin> m_builtin;
|
||||
AK::Function<ThrowCompletionOr<Value>(VM&)> m_native_function;
|
||||
GC::Ptr<Realm> m_realm;
|
||||
GC::Ref<Realm> m_realm;
|
||||
};
|
||||
|
||||
template<>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue