Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/coreUtils.js

Issue 29715555: Issue 6447 - Switch to Harmony modules in lib/* (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Created March 6, 2018, 7:42 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« lib/common.js ('K') | « lib/content/elemHideEmulation.js ('k') | lib/downloader.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld