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
Notes: sideshowbarker 2024-07-19 02:18:04 +09:00

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();
}