From 5477a990bc2807b09e69cff24bc2eaacc5aadddd Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Wed, 28 Jan 2015 18:09:38 +1100 Subject: [PATCH] construct null object for types.getIds --- lib/6to5/types/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();