summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-09-21 14:42:26 +0200
committerAndreas Kling <kling@serenityos.org>2020-09-21 14:42:26 +0200
commit5b6ccbb9184026578b1fc4110e72cd12b1144840 (patch)
tree5d41576871d1d818ecd3e2ecd126d246604dd18b /Libraries
parentc8baf29d82ca4db83f32a54015a3c5e92e20930e (diff)
downloadserenity-5b6ccbb9184026578b1fc4110e72cd12b1144840.zip
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.
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibJS/Runtime/VM.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/Libraries/LibJS/Runtime/VM.cpp b/Libraries/LibJS/Runtime/VM.cpp
index 066ddd9828..4517040ede 100644
--- a/Libraries/LibJS/Runtime/VM.cpp
+++ b/Libraries/LibJS/Runtime/VM.cpp
@@ -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();
}