Code coverage report for 6to5/lib/6to5/transformation/transformers/es6-property-name-shorthand.js

Statements: 100% (7 / 7)      Branches: 100% (2 / 2)      Functions: 100% (1 / 1)      Lines: 100% (6 / 6)      Ignored: none     

All files » 6to5/lib/6to5/transformation/transformers/ » es6-property-name-shorthand.js
1 2 3 4 5 6 7 8 91 1   1 14113 19 19    
var t = require("../../types");
var _ = require("lodash");
 
exports.Property = function (node) {
  if (!node.shorthand) return;
  node.shorthand = false;
  node.key = t.removeComments(_.clone(node.key));
};