mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 01:00:05 +00:00
LibJS: Implement ShadowRealm.prototype.evaluate()
This commit is contained in:
parent
b0ee7f38d0
commit
c70784bb82
Notes:
sideshowbarker
2024-07-18 02:45:44 +09:00
Author: https://github.com/linusg
Commit: c70784bb82
Pull-request: https://github.com/SerenityOS/serenity/pull/10463
Reviewed-by: https://github.com/IdanHo
9 changed files with 260 additions and 1 deletions
|
@ -528,7 +528,7 @@ ThrowCompletionOr<Value> perform_eval(Value x, GlobalObject& caller_realm, Calle
|
|||
|
||||
auto& interpreter = vm.interpreter();
|
||||
TemporaryChange scope_change_strict(vm.running_execution_context().is_strict_mode, strict_eval);
|
||||
// Note: We specifically use evaluate_statements here since we don't want to use global_declaration_instantiation from Program::execute.
|
||||
// FIXME: We need to use evaluate_statements() here because Program::execute() calls global_declaration_instantiation() when it shouldn't
|
||||
auto eval_result = program->evaluate_statements(interpreter, caller_realm);
|
||||
|
||||
if (auto* exception = vm.exception())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue