mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibWeb: Make TemporaryExecutionContext [[nodiscard]]
This commit is contained in:
committed by
Sam Atkins
parent
5d4aa15ada
commit
84b69c2387
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user