Importing names from places

This commit is contained in:
Fábio Santos
2016-02-21 17:06:09 +00:00
committed by Richard van Velzen
parent 0465bd270d
commit d35a9e7839
5 changed files with 56 additions and 9 deletions

View File

@@ -308,9 +308,21 @@ number_literals: {
import_statement: {
input: {
import "mod-name";
import "module2";
import Foo from "bar";
}
expect_exact: "import\"mod-name\";import Foo from\"bar\";"
}
import_statement_mangling: {
mangle = { };
input: {
import Foo from "foo";
Foo();
}
expect: {
import a from "foo";
a();
}
expect_exact: "import\"mod-name\";import\"module2\";"
}
// Fabio: My patches accidentally caused a crash whenever