turn custom runtime into a proper identifier

This commit is contained in:
Sebastian McKenzie
2014-11-14 09:15:00 +11:00
parent 740193b1e2
commit f75f045026

View File

@@ -5,7 +5,7 @@ var t = require("./types");
var _ = require("lodash");
module.exports = function (namespace) {
namespace = t.identifier(namespace || "to5Runtime");
namespace = t.identifier(t.toIdentifier(namespace || "to5Runtime"));
var body = [];
var container = t.functionExpression(null, [], t.blockStatement(body));