Don't mangle exported symbols

This commit is contained in:
Fábio Santos
2016-02-27 12:40:57 +00:00
committed by Richard van Velzen
parent ce84a706a3
commit 0bc4f6edb4
3 changed files with 48 additions and 10 deletions

View File

@@ -350,6 +350,22 @@ import_statement_mangling: {
}
}
export_statement_mangling: {
mangle = { };
input: {
export var foo = 6;
export function bar() { }
export class Baz { }
bar(foo, Baz)
}
expect: {
export var foo = 6;
export function bar() { }
export class Baz { }
bar(foo, Baz)
}
}
// Fabio: My patches accidentally caused a crash whenever
// there's an extraneous set of parens around an object.
regression_cannot_destructure: {