From bc1ece7f37cf9d22af42b749a238ecc8eb07facf Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 18 Apr 2020 10:27:57 +0200 Subject: 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. --- Libraries/LibWeb/Bindings/NavigatorObject.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Libraries/LibWeb/Bindings/NavigatorObject.cpp') 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 +#include #include namespace Web { namespace Bindings { NavigatorObject::NavigatorObject() + : Object(interpreter().object_prototype()) { put("appCodeName", js_string(heap(), "Mozilla")); put("appName", js_string(heap(), "Netscape")); -- cgit v1.2.3