From 5b6ccbb9184026578b1fc4110e72cd12b1144840 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 21 Sep 2020 14:42:26 +0200 Subject: [PATCH] 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. --- Libraries/LibJS/Runtime/VM.cpp | 5 +---- 1 file changed, 1 insertion(+), 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(); }