[gjs: 4/7] Gio: Remove obsolete code



commit dc789b671000a5a9cfb7c748ee3647e394f9b285
Author: Philip Chimento <philip chimento gmail com>
Date:   Tue Mar 20 00:58:58 2018 -0700

    Gio: Remove obsolete code
    
    The "XML" global object is obsolete and doesn't exist in SpiderMonkey
    anymore.

 modules/overrides/Gio.js | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/modules/overrides/Gio.js b/modules/overrides/Gio.js
index 3b5bc0c..23a0648 100644
--- a/modules/overrides/Gio.js
+++ b/modules/overrides/Gio.js
@@ -203,10 +203,7 @@ function _makeProxyWrapper(interfaceXml) {
 function _newNodeInfo(constructor, value) {
     if (typeof value == 'string')
         return constructor(value);
-    else if (value instanceof XML)
-        return constructor(value.toXMLString());
-    else
-        throw TypeError('Invalid type ' + Object.prototype.toString.call(value));
+    throw TypeError(`Invalid type ${Object.prototype.toString.call(value)}`);
 }
 
 function _newInterfaceInfo(value) {


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