diff options
author | Andreas Kling <kling@serenityos.org> | 2020-04-18 10:27:57 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-18 11:00:55 +0200 |
commit | bc1ece7f37cf9d22af42b749a238ecc8eb07facf (patch) | |
tree | a9f33f0454f3d7cfa3611e9bd30f9ebcc6e425fe /Libraries/LibWeb/Bindings/NavigatorObject.cpp | |
parent | f6d57c82f6dbbb5c7e18bffb43d0258956aa0d46 (diff) | |
download | serenity-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.cpp | 2 |
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")); |