diff --git a/lib/6to5/patch.js b/lib/6to5/patch.js index 7a3d9a7081..91bde31fbe 100644 --- a/lib/6to5/patch.js +++ b/lib/6to5/patch.js @@ -3,8 +3,6 @@ var extend = require("lodash/object/extend"); var t = require("./types"); -require("./types/node"); - // estraverse var estraverse = require("estraverse"); diff --git a/lib/6to5/types/index.js b/lib/6to5/types/index.js index fb3a871b92..58ffdda7fb 100644 --- a/lib/6to5/types/index.js +++ b/lib/6to5/types/index.js @@ -6,7 +6,6 @@ var isString = require("lodash/lang/isString"); var compact = require("lodash/array/compact"); var esutils = require("esutils"); var object = require("../helpers/object"); -var Node = require("./node"); var each = require("lodash/collection/each"); var uniq = require("lodash/array/uniq"); @@ -111,7 +110,7 @@ each(t.VISITOR_KEYS, function (keys, type) { each(t.BUILDER_KEYS, function (keys, type) { t[type[0].toLowerCase() + type.slice(1)] = function () { - var node = new Node; + var node = {}; node.start = null; node.type = type; diff --git a/lib/6to5/types/node.js b/lib/6to5/types/node.js deleted file mode 100644 index 19d60d3130..0000000000 --- a/lib/6to5/types/node.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; - -module.exports = Node; - -var acorn = require("acorn-6to5"); - -var oldNode = acorn.Node; -acorn.Node = Node; - -function Node() { - oldNode.apply(this); -}