This commit is contained in:
Amjad Masad
2015-12-16 12:20:49 -08:00
parent 320cede9be
commit 178da2f59b

View File

@@ -19,7 +19,8 @@ suite("generation", function () {
test("valid code", function() {
// Should not generate `0.foo`
new Function(generate.default(t.memberExpression(t.numericLiteral(60702), t.identifier("foo"))).code);
var mem = t.memberExpression(t.numericLiteral(60702), t.identifier("foo"));
new Function(generate.default(mem).code);
});
});