mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-25 09:04:53 +00:00
LibJS: Replace GlobalObject with VM in Value AOs [Part 4/19]
This is where the fun begins. :^)
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
auto result = bytecode_interpreter.run(*executable); \
|
||||
EXPECT(!result.is_error()); \
|
||||
if (result.is_error()) \
|
||||
dbgln("Error: {}", MUST(result.throw_completion().value()->to_string(bytecode_interpreter.global_object())));
|
||||
dbgln("Error: {}", MUST(result.throw_completion().value()->to_string(vm)));
|
||||
|
||||
#define EXPECT_NO_EXCEPTION_WITH_OPTIMIZATIONS(executable) \
|
||||
auto& passes = JS::Bytecode::Interpreter::optimization_pipeline(); \
|
||||
@@ -37,7 +37,7 @@
|
||||
\
|
||||
EXPECT(!result_with_optimizations.is_error()); \
|
||||
if (result_with_optimizations.is_error()) \
|
||||
dbgln("Error: {}", MUST(result_with_optimizations.throw_completion().value()->to_string(bytecode_interpreter.global_object())));
|
||||
dbgln("Error: {}", MUST(result_with_optimizations.throw_completion().value()->to_string(vm)));
|
||||
|
||||
#define EXPECT_NO_EXCEPTION_ALL(source) \
|
||||
SETUP_AND_PARSE("(() => {\n" source "\n})()") \
|
||||
|
||||
Reference in New Issue
Block a user