diff options
author | Linus Groh <mail@linusgroh.de> | 2022-03-17 22:40:17 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-18 01:12:12 +0100 |
commit | 9422ae9bb2630f65280c5c1a7e3cd748cafe8ce7 (patch) | |
tree | f4bdc720c83ace289535321db80c0a0a19b692db /Tests/Spreadsheet | |
parent | 50ad8d2a5ad00481c8e33f9987514fb9e917f620 (diff) | |
download | serenity-9422ae9bb2630f65280c5c1a7e3cd748cafe8ce7.zip |
LibJS: Add infallible variant of VM::push_execution_context()
It makes no sense to require passing a global object and doing a stack
space check in some cases where running out of stack is highly unlikely,
we can't recover from errors, and currently ignore the result anyway.
This is most commonly in constructors and when setting things up, rather
than regular function calls.
Diffstat (limited to 'Tests/Spreadsheet')
-rw-r--r-- | Tests/Spreadsheet/test-spreadsheet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/Spreadsheet/test-spreadsheet.cpp b/Tests/Spreadsheet/test-spreadsheet.cpp index e3d27895ea..425aedac18 100644 --- a/Tests/Spreadsheet/test-spreadsheet.cpp +++ b/Tests/Spreadsheet/test-spreadsheet.cpp @@ -27,7 +27,7 @@ TESTJS_RUN_FILE_FUNCTION(String const&, JS::Interpreter& interpreter, JS::Execut } auto script = result.release_value(); - interpreter.vm().push_execution_context(global_execution_context, interpreter.realm().global_object()); + interpreter.vm().push_execution_context(global_execution_context); MUST(interpreter.run(*script)); interpreter.vm().pop_execution_context(); }; |