mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +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
|
@ -150,6 +150,9 @@ Value BlockStatement::execute(Interpreter& interpreter, GlobalObject& global_obj
|
|||
|
||||
Value Program::execute(Interpreter& interpreter, GlobalObject& global_object) const
|
||||
{
|
||||
// FIXME: This tries to be "ScriptEvaluation" and "evaluating scriptBody" at once. It shouldn't.
|
||||
// Clean this up and update perform_eval() / perform_shadow_realm_eval()
|
||||
|
||||
InterpreterNodeScope node_scope { interpreter, *this };
|
||||
|
||||
VERIFY(interpreter.lexical_environment() && interpreter.lexical_environment()->is_global_environment());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue