diff options
author | Andreas Kling <kling@serenityos.org> | 2020-04-18 13:18:06 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-04-18 13:24:45 +0200 |
commit | fca08bd000e613459baf62fa8d37552ef11f3fe6 (patch) | |
tree | f20e36879896fb150a6031b4383b53296de6ca45 /Libraries/LibWeb/Bindings/NavigatorObject.cpp | |
parent | cbcf317e760c3370d10cfc525f0f528abd44e820 (diff) | |
download | serenity-fca08bd000e613459baf62fa8d37552ef11f3fe6.zip |
LibJS: Move builtin prototypes to the global object
This moves us towards being able to run JavaScript in different global
objects without allocating a separate GC heap.
Diffstat (limited to 'Libraries/LibWeb/Bindings/NavigatorObject.cpp')
-rw-r--r-- | Libraries/LibWeb/Bindings/NavigatorObject.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Libraries/LibWeb/Bindings/NavigatorObject.cpp b/Libraries/LibWeb/Bindings/NavigatorObject.cpp index 1e36621100..5100c5541c 100644 --- a/Libraries/LibWeb/Bindings/NavigatorObject.cpp +++ b/Libraries/LibWeb/Bindings/NavigatorObject.cpp @@ -26,13 +26,14 @@ #include <AK/FlyString.h> #include <LibJS/Interpreter.h> +#include <LibJS/Runtime/GlobalObject.h> #include <LibWeb/Bindings/NavigatorObject.h> namespace Web { namespace Bindings { NavigatorObject::NavigatorObject() - : Object(interpreter().object_prototype()) + : Object(interpreter().global_object().object_prototype()) { put("appCodeName", js_string(heap(), "Mozilla")); put("appName", js_string(heap(), "Netscape")); |