make typeofSymbol transformer optional

This commit is contained in:
Sebastian McKenzie
2015-01-05 10:21:32 +11:00
parent f85eeeb93c
commit cf7b9234c1

View File

@@ -1,5 +1,7 @@
var t = require("../../types");
exports.optional = true;
exports.UnaryExpression = function (node, parent, file, scope) {
if (node.operator === "typeof") {
return t.callExpression(file.addHelper("typeof"), [node.argument]);