summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/Bindings/NavigatorObject.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-04-18 10:27:57 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-18 11:00:55 +0200
commitbc1ece7f37cf9d22af42b749a238ecc8eb07facf (patch)
treea9f33f0454f3d7cfa3611e9bd30f9ebcc6e425fe /Libraries/LibWeb/Bindings/NavigatorObject.cpp
parentf6d57c82f6dbbb5c7e18bffb43d0258956aa0d46 (diff)
downloadserenity-bc1ece7f37cf9d22af42b749a238ecc8eb07facf.zip
LibJS+LibWeb: Pass prototype to Object constructor
Everyone who constructs an Object must now pass a prototype object when applicable. There's still a fair amount of code that passes something fetched from the Interpreter, but this brings us closer to being able to detach prototypes from Interpreter eventually.
Diffstat (limited to 'Libraries/LibWeb/Bindings/NavigatorObject.cpp')
-rw-r--r--Libraries/LibWeb/Bindings/NavigatorObject.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibWeb/Bindings/NavigatorObject.cpp b/Libraries/LibWeb/Bindings/NavigatorObject.cpp
index 0940510b71..1e36621100 100644
--- a/Libraries/LibWeb/Bindings/NavigatorObject.cpp
+++ b/Libraries/LibWeb/Bindings/NavigatorObject.cpp
@@ -25,12 +25,14 @@
*/
#include <AK/FlyString.h>
+#include <LibJS/Interpreter.h>
#include <LibWeb/Bindings/NavigatorObject.h>
namespace Web {
namespace Bindings {
NavigatorObject::NavigatorObject()
+ : Object(interpreter().object_prototype())
{
put("appCodeName", js_string(heap(), "Mozilla"));
put("appName", js_string(heap(), "Netscape"));