Code coverage report for 6to5/lib/6to5/transformation/transformers/optional-typeof-symbol.js

Statements: 100% (5 / 5)      Branches: 50% (1 / 2)      Functions: 100% (1 / 1)      Lines: 100% (5 / 5)      Ignored: none     

All files » 6to5/lib/6to5/transformation/transformers/ » optional-typeof-symbol.js
1 2 3 4 5 6 7 8 9 101   1   1 2 2      
var t = require("../../types");
 
exports.optional = true;
 
exports.UnaryExpression = function (node, parent, file) {
  Eif (node.operator === "typeof") {
    return t.callExpression(file.addHelper("typeof"), [node.argument]);
  }
};