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);