1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:07:46 +00:00

LibJS/Bytecode: Remove BlockBoundaryType::LeaveVariableEnvironment

We never need to manually exit a var environment from bytecode anymore.
This commit is contained in:
Andreas Kling 2023-06-16 16:38:25 +02:00
parent ac246d764d
commit 12ce0789da
2 changed files with 0 additions and 14 deletions

View file

@ -149,7 +149,6 @@ public:
Unwind,
ReturnToFinally,
LeaveLexicalEnvironment,
LeaveVariableEnvironment,
};
template<typename OpType>
void perform_needed_unwinds()
@ -167,9 +166,6 @@ public:
case LeaveLexicalEnvironment:
emit<Bytecode::Op::LeaveEnvironment>(Bytecode::Op::EnvironmentMode::Lexical);
break;
case LeaveVariableEnvironment:
emit<Bytecode::Op::LeaveEnvironment>(Bytecode::Op::EnvironmentMode::Var);
break;
case Break:
case Continue:
break;