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

LibJS: VM::interpreter() should just assert when no active interpreter

I accidentally committed some code here to force a crash, but this
should just assert.
This commit is contained in:
Andreas Kling 2020-09-21 14:42:26 +02:00
parent c8baf29d82
commit 5b6ccbb918

View file

@ -45,10 +45,7 @@ VM::~VM()
Interpreter& VM::interpreter()
{
if (m_interpreters.is_empty()) {
asm volatile("ud2");
}
// ASSERT(!m_interpreters.is_empty());
ASSERT(!m_interpreters.is_empty());
return *m_interpreters.last();
}