From b0384bee99f1aac62628d23abd42ff696dca8f76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 11 Jul 2023 16:43:02 +0200 Subject: [PATCH] tests/shell: Also import built-in modules as modules The "System" module is provided by gjs itself, and also available as module. Part-of: --- tests/shell/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/shell/core.js b/tests/shell/core.js index 78d17d8c9..933960104 100644 --- a/tests/shell/core.js +++ b/tests/shell/core.js @@ -1,7 +1,7 @@ // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- /* eslint camelcase: ["error", { properties: "never", allow: ["^script_", "^malloc", "^glx", "^clutter"] }] */ -const System = imports.system; +import System from 'system'; const Main = imports.ui.main; const Scripting = imports.ui.scripting;