mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-19 00:31:52 +00:00
LibWeb: Make TemporaryExecutionContext [[nodiscard]]
This commit is contained in:
parent
5d4aa15ada
commit
84b69c2387
Notes:
github-actions[bot]
2025-01-10 13:22:37 +00:00
Author: https://github.com/tcl3
Commit: 84b69c2387
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3211
Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue