[gjs/ewlsh/nova-repl: 5/5] Ignore Gio
- From: Evan Welsh <ewlsh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/ewlsh/nova-repl: 5/5] Ignore Gio
- Date: Sat, 4 Sep 2021 17:29:37 +0000 (UTC)
commit 90f18a7789f881b76496b418ca694ac76b5bf691
Author: Evan Welsh <contact evanwelsh com>
Date: Sat Sep 4 10:24:13 2021 -0700
Ignore Gio
modules/esm/repl.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/modules/esm/repl.js b/modules/esm/repl.js
index 27c09f38..07f68e00 100644
--- a/modules/esm/repl.js
+++ b/modules/esm/repl.js
@@ -1,10 +1,8 @@
// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
// SPDX-FileCopyrightText: 2021 Evan Welsh <contact evanwelsh com>
-import System from 'system';
-
import GLib from 'gi://GLib';
-import Gio from 'gi://Gio';
+let Gio;
import {Ansi, Keycode, Figures} from './_repl/cliffy.js';
@@ -574,6 +572,8 @@ const sMainLoop = Symbol('main loop');
export class Repl {
constructor() {
+ ({ Gio } = imports.gi);
+
this.lineNumber = 0;
this.isRaw = false;
@@ -715,7 +715,7 @@ export class Repl {
replaceMainLoop(start, quit = () => {
// Force an exit if a user doesn't define their
// replacement mainloop's quit function.
- System.exit(1);
+ imports.system.exit(1);
}) {
if (!(this.input instanceof ReplInput))
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]