From f75f045026c92889b92d89073a7c9cd8afe3bad7 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Fri, 14 Nov 2014 09:15:00 +1100 Subject: [PATCH] turn custom runtime into a proper identifier --- lib/6to5/runtime.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/6to5/runtime.js b/lib/6to5/runtime.js index 39ac7ba908..6c4fdbc9fd 100644 --- a/lib/6to5/runtime.js +++ b/lib/6to5/runtime.js @@ -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));