mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 22:52:22 +02:00
LibJS: Remove hand-rolled Object is_foo() helpers in favor of RTTI
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 00:15:57 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/f48751a7392
@@ -106,7 +106,7 @@ LexicalEnvironment* ScriptFunction::create_environment()
|
||||
environment->set_home_object(home_object());
|
||||
environment->set_current_function(*this);
|
||||
if (m_is_arrow_function) {
|
||||
if (m_parent_scope->is_lexical_environment())
|
||||
if (is<LexicalEnvironment>(m_parent_scope))
|
||||
environment->set_new_target(static_cast<LexicalEnvironment*>(m_parent_scope)->new_target());
|
||||
}
|
||||
return environment;
|
||||
|
||||
Reference in New Issue
Block a user