From 638143700b3b07bef9b2155eb91f198fa0e77aff Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Thu, 20 Nov 2014 00:49:12 +1100 Subject: [PATCH] add whitespace around defineArgs --- lib/6to5/transformation/modules/amd.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/6to5/transformation/modules/amd.js b/lib/6to5/transformation/modules/amd.js index 6b174ac376..de0c6c67f2 100644 --- a/lib/6to5/transformation/modules/amd.js +++ b/lib/6to5/transformation/modules/amd.js @@ -30,9 +30,11 @@ AMDFormatter.prototype.transform = function (ast) { params.unshift(t.identifier("exports")); var container = t.functionExpression(null, params, t.blockStatement(body)); + var defineArgs = [names, container]; var moduleName = this.getModuleName(); if (moduleName) defineArgs.unshift(t.literal(moduleName)); + var call = t.callExpression(t.identifier("define"), defineArgs); program.body = [t.expressionStatement(call)];