LibWeb: Make TemporaryExecutionContext [[nodiscard]]

This commit is contained in:
Tim Ledbetter 2025-01-10 12:25:58 +00:00 committed by Sam Atkins
parent 5d4aa15ada
commit 84b69c2387
Notes: github-actions[bot] 2025-01-10 13:22:37 +00:00

View file

@ -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,