diff --git a/Libraries/LibWeb/HTML/Scripting/TemporaryExecutionContext.h b/Libraries/LibWeb/HTML/Scripting/TemporaryExecutionContext.h index 445267114d..cdc01d15d1 100644 --- a/Libraries/LibWeb/HTML/Scripting/TemporaryExecutionContext.h +++ b/Libraries/LibWeb/HTML/Scripting/TemporaryExecutionContext.h @@ -14,7 +14,7 @@ namespace Web::HTML { // When JS is run from outside the context of any user script, we currently do not have a running execution context. // This results in a crash when we access VM::running_execution_context(). This is a spec issue. Until it is resolved, // this is a workaround to temporarily push an execution context. -class TemporaryExecutionContext { +class [[nodiscard]] TemporaryExecutionContext { public: enum class CallbacksEnabled { No,