From 36fef5676abac8e3323b70627f1ae4c91bc4771a Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Fri, 23 Jan 2015 23:02:48 +1100 Subject: [PATCH] add helpers --- lib/6to5/helpers/object.js | 5 +++++ lib/6to5/{ => helpers}/to-fast-properties.js | 0 lib/6to5/util.js | 4 ---- 3 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 lib/6to5/helpers/object.js rename lib/6to5/{ => helpers}/to-fast-properties.js (100%) diff --git a/lib/6to5/helpers/object.js b/lib/6to5/helpers/object.js new file mode 100644 index 0000000000..a61d87e6f9 --- /dev/null +++ b/lib/6to5/helpers/object.js @@ -0,0 +1,5 @@ +"use strict"; + +module.exports = function () { + return Object.create(null); +}; diff --git a/lib/6to5/to-fast-properties.js b/lib/6to5/helpers/to-fast-properties.js similarity index 100% rename from lib/6to5/to-fast-properties.js rename to lib/6to5/helpers/to-fast-properties.js diff --git a/lib/6to5/util.js b/lib/6to5/util.js index 3909bf9e9b..c5b33284be 100644 --- a/lib/6to5/util.js +++ b/lib/6to5/util.js @@ -25,10 +25,6 @@ exports.isInteger = function (i) { return _.isNumber(i) && i % 1 === 0; }; -exports.object = function () { - return Object.create(null); -}; - exports.resolve = function (loc) { try { return require.resolve(loc);