X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=common%2Fmodules%2Fbootstrap.jsm;h=1325f2940564d56ef6c9fd4a91df05fefec65198;hb=refs%2Fheads%2Fupstream;hp=4206133a8249b922b5cff8befbe73190ac3f0813;hpb=354a049cce8415487552ce405cce167b7071fe1f;p=dactyl.git diff --git a/common/modules/bootstrap.jsm b/common/modules/bootstrap.jsm index 4206133..1325f29 100644 --- a/common/modules/bootstrap.jsm +++ b/common/modules/bootstrap.jsm @@ -1,4 +1,4 @@ -// Copyright (c) 2011-2012 Kris Maglione +// Copyright (c) 2011-2014 Kris Maglione // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. @@ -6,11 +6,11 @@ var EXPORTED_SYMBOLS = ["require"]; -// Deal with cross-compartment XML passing issues. function create(proto) Object.create(proto); + this["import"] = function import_(obj) { let res = {}; - for each (let key in Object.getOwnPropertyNames(obj)) + for (let key of Object.getOwnPropertyNames(obj)) Object.defineProperty(res, key, Object.getOwnPropertyDescriptor(obj, key)); return res; }