Mangle class names correctly

This commit is contained in:
Fábio Santos
2015-11-21 13:59:18 +00:00
parent 425613b0d2
commit e076abdbf2
2 changed files with 25 additions and 2 deletions

View File

@@ -233,6 +233,24 @@ class_name_can_be_mangled: {
}
}
class_name_can_be_preserved: {
mangle = {
keep_classnames: true
}
input: {
function x() {
(class Baz { });
class Foo {};
}
}
expect: {
function x() {
(class Baz { });
class Foo {};
}
}
}
number_literals: {
input: {
0b1001;