mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:58:11 +00:00
LibJS: Remove hand-rolled Object is_foo() helpers in favor of RTTI
This commit is contained in:
parent
8333055c3d
commit
f48751a739
47 changed files with 78 additions and 107 deletions
|
@ -190,7 +190,7 @@ Value Interpreter::execute_statement(GlobalObject& global_object, const Statemen
|
|||
|
||||
LexicalEnvironment* Interpreter::current_environment()
|
||||
{
|
||||
ASSERT(vm().call_frame().scope->is_lexical_environment());
|
||||
ASSERT(is<LexicalEnvironment>(vm().call_frame().scope));
|
||||
return static_cast<LexicalEnvironment*>(vm().call_frame().scope);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue