mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-30 00:09:01 +00:00
Revert "LibJS+LibWeb: Remove now-unused lexical environment override"
This reverts commit d39f6975f9
.
This commit is contained in:
parent
b09b23a162
commit
d40b7d67b1
Notes:
github-actions[bot]
2024-11-06 13:43:32 +00:00
Author: https://github.com/trflynn89
Commit: d40b7d67b1
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2082
Reviewed-by: https://github.com/awesomekling
4 changed files with 9 additions and 5 deletions
|
@ -75,7 +75,7 @@ JS::NonnullGCPtr<ClassicScript> ClassicScript::create(ByteString filename, Strin
|
|||
|
||||
// https://html.spec.whatwg.org/multipage/webappapis.html#run-a-classic-script
|
||||
// https://whatpr.org/html/9893/webappapis.html#run-a-classic-script
|
||||
JS::Completion ClassicScript::run(RethrowErrors rethrow_errors)
|
||||
JS::Completion ClassicScript::run(RethrowErrors rethrow_errors, JS::GCPtr<JS::Environment> lexical_environment_override)
|
||||
{
|
||||
// 1. Let realm be the realm of script.
|
||||
auto& realm = this->realm();
|
||||
|
@ -97,7 +97,7 @@ JS::Completion ClassicScript::run(RethrowErrors rethrow_errors)
|
|||
auto timer = Core::ElapsedTimer::start_new();
|
||||
|
||||
// 6. Otherwise, set evaluationStatus to ScriptEvaluation(script's record).
|
||||
evaluation_status = vm().bytecode_interpreter().run(*m_script_record);
|
||||
evaluation_status = vm().bytecode_interpreter().run(*m_script_record, lexical_environment_override);
|
||||
|
||||
// FIXME: If ScriptEvaluation does not complete because the user agent has aborted the running script, leave evaluationStatus as null.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue