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:
parent
c8baf29d82
commit
5b6ccbb918
1 changed files with 1 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue