From 84b69c2387b3147cf25cb222ff33ffcd3888fded Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Fri, 10 Jan 2025 12:25:58 +0000 Subject: [PATCH] LibWeb: Make TemporaryExecutionContext [[nodiscard]] --- Libraries/LibWeb/HTML/Scripting/TemporaryExecutionContext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibWeb/HTML/Scripting/TemporaryExecutionContext.h b/Libraries/LibWeb/HTML/Scripting/TemporaryExecutionContext.h index 445267114dd..cdc01d15d12 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,