UNPKG

6to5-core

Version:

Turn ES6 code into readable vanilla ES5 with source maps

12 lines (8 loc) 256 B
"use strict"; var t = require("../../../types"); exports.optional = true; exports.Identifier = function (node, parent) { if (node.name === "undefined" && t.isReferenced(node, parent)) { return t.unaryExpression("void", t.literal(0), true); } };