diff --git a/Libraries/LibJS/Runtime/VM.h b/Libraries/LibJS/Runtime/VM.h index cddce389eb6..698f74ca664 100644 --- a/Libraries/LibJS/Runtime/VM.h +++ b/Libraries/LibJS/Runtime/VM.h @@ -127,8 +127,6 @@ public: void pop_execution_context() { m_execution_context_stack.take_last(); - if (m_execution_context_stack.is_empty() && on_call_stack_emptied) - on_call_stack_emptied(); } // https://tc39.es/ecma262/#running-execution-context @@ -251,7 +249,6 @@ public: void promise_rejection_tracker(Promise&, Promise::RejectionOperation) const; - Function on_call_stack_emptied; Function on_promise_unhandled_rejection; Function on_promise_rejection_handled; Function on_unimplemented_property_access;