[gjs/ewlsh/text-encoding: 19/24] ByteArray: Clarify eslint override
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/ewlsh/text-encoding: 19/24] ByteArray: Clarify eslint override
- Date: Mon, 14 Jun 2021 05:07:44 +0000 (UTC)
commit dd56406a6b19ad8ad9dcb470c4281e358e86fa0c
Author: Evan Welsh <contact evanwelsh com>
Date: Sun Jun 13 17:55:34 2021 -0700
ByteArray: Clarify eslint override
This exists because we export a property named 'toString' from this
module.
modules/script/byteArray.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/modules/script/byteArray.js b/modules/script/byteArray.js
index 6d4b0f51..98589d28 100644
--- a/modules/script/byteArray.js
+++ b/modules/script/byteArray.js
@@ -2,7 +2,9 @@
// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
// SPDX-FileCopyrightText: 2017 Philip Chimento <philip chimento gmail com>
-/* eslint no-redeclare: ["error", { "builtinGlobals": false }] */ // for toString
+// Allow toString to be declared.
+/* eslint no-redeclare: ["error", { "builtinGlobals": false }] */
+
var {fromGBytes, fromString, toGBytes, toString} = imports._byteArrayNative;
// For backwards compatibility
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]