[gjs: 4/7] Gio: Remove obsolete code
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 4/7] Gio: Remove obsolete code
- Date: Sun, 25 Mar 2018 18:34:40 +0000 (UTC)
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]