[gjs/esm/static-imports: 2/9] GLib: Use native byte array function for override.




commit 58cf7cbc65d5dd84dbbb6b653b09e8e92636eacd
Author: Evan Welsh <contact evanwelsh com>
Date:   Thu Jan 28 17:55:11 2021 -0800

    GLib: Use native byte array function for override.

 modules/core/overrides/GLib.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/modules/core/overrides/GLib.js b/modules/core/overrides/GLib.js
index 20ae7e04..5e3800a9 100644
--- a/modules/core/overrides/GLib.js
+++ b/modules/core/overrides/GLib.js
@@ -308,7 +308,7 @@ function _init() {
     };
 
     this.Bytes.prototype.toArray = function () {
-        return imports.byteArray.fromGBytes(this);
+        return imports._byteArrayNative.fromGBytes(this);
     };
 
     this.log_structured = function (logDomain, logLevel, stringFields) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]