contextLiteral fallback in es6-spread transformer

This commit is contained in:
Sebastian McKenzie
2015-01-04 07:59:56 +11:00
parent 7f4efecb7d
commit a645ae0583

View File

@@ -83,6 +83,8 @@ exports.CallExpression = function (node, parent, file, scope) {
if (temp) {
callee.object = t.assignmentExpression("=", temp, callee.object);
contextLiteral = temp;
} else {
contextLiteral = callee.object;
}
t.appendToMemberExpression(callee, t.identifier("apply"));
} else {