mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 02:34:11 +01:00
Death to E4X and stuff.
This commit is contained in:
@@ -2,13 +2,13 @@
|
||||
//
|
||||
// This work is licensed for reuse under an MIT license. Details are
|
||||
// given in the LICENSE.txt file included with this file.
|
||||
/* use strict */
|
||||
"use strict";
|
||||
|
||||
var EXPORTED_SYMBOLS = ["require"];
|
||||
|
||||
// Deal with cross-compartment XML passing issues.
|
||||
function create(proto) Object.create(proto);
|
||||
function import(obj) {
|
||||
this["import"] = function import_(obj) {
|
||||
let res = {};
|
||||
for each (let key in Object.getOwnPropertyNames(obj))
|
||||
Object.defineProperty(res, key, Object.getOwnPropertyDescriptor(obj, key));
|
||||
|
||||
Reference in New Issue
Block a user