mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibJS: Move the current exception from Interpreter to VM
This will allow us to throw exceptions even when there is no active interpreter in the VM.
This commit is contained in:
parent
675b482fe7
commit
4a8bfcdd1c
Notes:
sideshowbarker
2024-07-19 02:16:42 +09:00
Author: https://github.com/awesomekling
Commit: 4a8bfcdd1c
12 changed files with 26 additions and 23 deletions
|
@ -434,7 +434,7 @@ JS::Value Document::run_javascript(const StringView& source)
|
|||
auto& interpreter = document().interpreter();
|
||||
auto result = interpreter.run(interpreter.global_object(), *program);
|
||||
if (interpreter.exception())
|
||||
interpreter.clear_exception();
|
||||
interpreter.vm().clear_exception();
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue