summaryrefslogtreecommitdiff
path: root/Tests/LibWeb
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-06-27 21:48:34 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-27 22:36:04 +0200
commitba9d5c4d54d2e58c14eafe1e8960c3832fac46c7 (patch)
tree975cef60a364e12fb5600555548bdb1f8565874e /Tests/LibWeb
parente389ae3c9754b0c6c40a383a666f103c42789630 (diff)
downloadserenity-ba9d5c4d54d2e58c14eafe1e8960c3832fac46c7.zip
LibJS: Rename Function => FunctionObject
Diffstat (limited to 'Tests/LibWeb')
-rw-r--r--Tests/LibWeb/test-web.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/LibWeb/test-web.cpp b/Tests/LibWeb/test-web.cpp
index 17f39bb3b3..958c66dceb 100644
--- a/Tests/LibWeb/test-web.cpp
+++ b/Tests/LibWeb/test-web.cpp
@@ -66,7 +66,7 @@ TESTJS_GLOBAL_FUNCTION(after_initial_page_load, afterInitialPageLoad)
}
after_initial_load_hooks.append([fn = JS::make_handle(&function.as_function()), &vm](auto& page_object) {
- [[maybe_unused]] auto unused = vm.call(const_cast<JS::Function&>(*fn.cell()), JS::js_undefined(), &page_object);
+ [[maybe_unused]] auto unused = vm.call(const_cast<JS::FunctionObject&>(*fn.cell()), JS::js_undefined(), &page_object);
});
return JS::js_undefined();
}
@@ -81,7 +81,7 @@ TESTJS_GLOBAL_FUNCTION(before_initial_page_load, beforeInitialPageLoad)
}
before_initial_load_hooks.append([fn = JS::make_handle(&function.as_function()), &vm](auto& page_object) {
- [[maybe_unused]] auto unused = vm.call(const_cast<JS::Function&>(*fn.cell()), JS::js_undefined(), &page_object);
+ [[maybe_unused]] auto unused = vm.call(const_cast<JS::FunctionObject&>(*fn.cell()), JS::js_undefined(), &page_object);
});
return JS::js_undefined();
}