mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 02:05:07 +02:00
LibJS: Rip out the AST interpreter :^)
This has been superseded by the bytecode VM, which is both faster and more capable.
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 02:14:39 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/2eaa528a0e Pull-request: https://github.com/SerenityOS/serenity/pull/20421
@@ -4,7 +4,6 @@
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibJS/Interpreter.h>
|
||||
#include <LibJS/Runtime/ModuleRequest.h>
|
||||
#include <LibWeb/HTML/Scripting/Environments.h>
|
||||
#include <LibWeb/HTML/Scripting/Fetching.h>
|
||||
@@ -136,9 +135,6 @@ JS::Promise* JavaScriptModuleScript::run(PreventErrorReporting)
|
||||
auto record = m_record;
|
||||
VERIFY(record);
|
||||
|
||||
auto interpreter = JS::Interpreter::create_with_existing_realm(settings.realm());
|
||||
JS::VM::InterpreterExecutionScope scope(*interpreter);
|
||||
|
||||
// 2. Set evaluationPromise to record.Evaluate().
|
||||
auto elevation_promise_or_error = record->evaluate(vm());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user