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
Notes:
sideshowbarker
2024-07-19 02:18:04 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/5b6ccbb9184
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
Reference in a new issue