diff options
Diffstat (limited to 'Meta/Lagom/Fuzzers/FuzzilliJs.cpp')
-rw-r--r-- | Meta/Lagom/Fuzzers/FuzzilliJs.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Meta/Lagom/Fuzzers/FuzzilliJs.cpp b/Meta/Lagom/Fuzzers/FuzzilliJs.cpp index e4d2a9a711..f55840bcac 100644 --- a/Meta/Lagom/Fuzzers/FuzzilliJs.cpp +++ b/Meta/Lagom/Fuzzers/FuzzilliJs.cpp @@ -120,10 +120,9 @@ class TestRunnerGlobalObject final : public JS::GlobalObject { public: TestRunnerGlobalObject(JS::Realm&); + virtual void initialize(JS::Realm&) override; virtual ~TestRunnerGlobalObject() override; - virtual void initialize_global_object(JS::Realm&) override; - private: JS_DECLARE_NATIVE_FUNCTION(fuzzilli); }; @@ -168,9 +167,9 @@ JS_DEFINE_NATIVE_FUNCTION(TestRunnerGlobalObject::fuzzilli) return JS::js_undefined(); } -void TestRunnerGlobalObject::initialize_global_object(JS::Realm& realm) +void TestRunnerGlobalObject::initialize(JS::Realm& realm) { - Base::initialize_global_object(realm); + Base::initialize(realm); define_direct_property("global", this, JS::Attribute::Enumerable); define_native_function(realm, "fuzzilli", fuzzilli, 2, JS::default_attributes); } |