diff --git a/generator/typesystem_webenginewidgets.xml b/generator/typesystem_webenginewidgets.xml
index 110827b60..992a52ea3 100644
--- a/generator/typesystem_webenginewidgets.xml
+++ b/generator/typesystem_webenginewidgets.xml
@@ -4,6 +4,11 @@
+
+ void runJavaScript(QWebEnginePage* theWrappedObject, const QString& scriptSource, quint32 worldId = 0) {
+ theWrappedObject->runJavaScript(scriptSource, worldId);
+ }
+