Mangling externally imported names by using aliasing

This commit is contained in:
Fábio Santos
2016-02-27 12:01:16 +00:00
committed by Richard van Velzen
parent 59e1601fb8
commit 86b5248837
5 changed files with 44 additions and 2 deletions

View File

@@ -320,11 +320,21 @@ import_statement_mangling: {
mangle = { };
input: {
import Foo from "foo";
import Bar, {Food} from "lel";
import {What as Whatever} from "lel";
Foo();
Bar();
Food();
Whatever();
}
expect: {
import a from "foo";
import b, {Food as c} from "lel";
import {What as d} from "lel";
a();
b();
c();
d();
}
}