mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 13:17:34 +00:00
LibJS: Remove Interpreter::call()
Just use VM::call() directly everywhere.
This commit is contained in:
parent
ec55490198
commit
94b95a4924
4 changed files with 6 additions and 36 deletions
|
@ -363,7 +363,7 @@ JSFileResult TestRunner::run_file_test(const String& test_path)
|
|||
new_interpreter.run(new_interpreter.global_object(), *file_program.value());
|
||||
|
||||
auto& before_initial_page_load = new_interpreter.vm().get_variable("__BeforeInitialPageLoad__", new_interpreter.global_object()).as_function();
|
||||
(void)new_interpreter.call(before_initial_page_load, JS::js_undefined());
|
||||
(void)new_interpreter.vm().call(before_initial_page_load, JS::js_undefined());
|
||||
if (new_interpreter.exception())
|
||||
new_interpreter.vm().clear_exception();
|
||||
|
||||
|
@ -373,7 +373,7 @@ JSFileResult TestRunner::run_file_test(const String& test_path)
|
|||
|
||||
// Finally run the test by calling "__AfterInitialPageLoad__"
|
||||
auto& after_initial_page_load = new_interpreter.vm().get_variable("__AfterInitialPageLoad__", new_interpreter.global_object()).as_function();
|
||||
(void)new_interpreter.call(after_initial_page_load, JS::js_undefined());
|
||||
(void)new_interpreter.vm().call(after_initial_page_load, JS::js_undefined());
|
||||
if (new_interpreter.exception())
|
||||
new_interpreter.vm().clear_exception();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue