reject non-toplevel import/export (#2128)

fixes #2124
This commit is contained in:
Alex Lam S.L
2017-06-21 03:18:48 +08:00
committed by GitHub
parent 62d1fbf645
commit 11923e3ae8
5 changed files with 45 additions and 28 deletions

View File

@@ -40,34 +40,6 @@ issue_2038_2: {
}
}
issue_2124: {
options = {
unused: true,
}
input: {
{
export var V = 1;
}
{
export let L = 2;
}
{
export const C = 3;
}
}
expect: {
{
export var V = 1;
}
{
export let L = 2;
}
{
export const C = 3;
}
}
}
issue_2126: {
mangle = {
toplevel: true,