Index: lib/coreUtils.js |
=================================================================== |
--- a/lib/coreUtils.js |
+++ b/lib/coreUtils.js |
@@ -12,25 +12,23 @@ |
* GNU General Public License for more details. |
* |
* You should have received a copy of the GNU General Public License |
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
*/ |
"use strict"; |
-function desc(properties) |
+export function desc(properties) |
{ |
let descriptor = {}; |
let keys = Object.keys(properties); |
for (let key of keys) |
descriptor[key] = Object.getOwnPropertyDescriptor(properties, key); |
return descriptor; |
} |
-exports.desc = desc; |
-function extend(cls, properties) |
+export function extend(cls, properties) |
{ |
return Object.create(cls.prototype, desc(properties)); |
} |
-exports.extend = extend; |