mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
LibJS: Use TRY(push_execution_context()) in places where we can recover
This commit is contained in:
parent
9422ae9bb2
commit
29964dc152
3 changed files with 4 additions and 4 deletions
|
@ -74,7 +74,7 @@ ThrowCompletionOr<Value> Interpreter::run(Script& script_record)
|
|||
// FIXME: 9. Suspend the currently running execution context.
|
||||
|
||||
// 10. Push scriptContext onto the execution context stack; scriptContext is now the running execution context.
|
||||
vm.push_execution_context(script_context, global_object);
|
||||
TRY(vm.push_execution_context(script_context, global_object));
|
||||
|
||||
// 11. Let scriptBody be scriptRecord.[[ECMAScriptCode]].
|
||||
auto& script_body = script_record.parse_node();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue