diff options
Diffstat (limited to 'gjs/console.cpp')
-rw-r--r-- | gjs/console.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gjs/console.cpp b/gjs/console.cpp index 3d53ade0..c2e15789 100644 --- a/gjs/console.cpp +++ b/gjs/console.cpp @@ -355,7 +355,7 @@ int main(int argc, char** argv) { if (coverage_prefixes) gjs_coverage_enable(); - GjsAutoUnref<GjsContext> js_context(static_cast<GjsContext*>(g_object_new( + GjsAutoUnref<GjsContext> js_context(GJS_CONTEXT(g_object_new( GJS_TYPE_CONTEXT, "search-path", include_path.get(), "program-name", program_name, "program-path", program_path.get(), "profiler-enabled", enable_profiler, "exec-as-module", exec_as_module, nullptr))); |