diff --git a/lib/6to5/types/index.js b/lib/6to5/types/index.js index 08fc175326..dd23674395 100644 --- a/lib/6to5/types/index.js +++ b/lib/6to5/types/index.js @@ -2,6 +2,7 @@ var toFastProperties = require("../helpers/to-fast-properties"); var esutils = require("esutils"); +var object = require("../helpers/object"); var Node = require("./node"); var _ = require("lodash"); @@ -455,7 +456,7 @@ t.getIds = function (node, map, ignoreTypes) { ignoreTypes = ignoreTypes || []; var search = [].concat(node); - var ids = {}; + var ids = object(); while (search.length) { var id = search.shift();