Fixed typeof undefined optimization and updated related test case to
accomodates the sort behaviour changes made in commit mishoo/UglifyJS2@aebafad41e. Signed-off-by: Justin Lau <justin@tclau.com>
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
typeof_eq_undefined: {
|
||||
options = {
|
||||
comparisons: true,
|
||||
unsafe: false
|
||||
comparisons: true
|
||||
};
|
||||
input: { a = typeof b.c != "undefined" }
|
||||
expect: { a = "undefined" != typeof b.c }
|
||||
expect: { a = typeof b.c != "undefined" }
|
||||
}
|
||||
|
||||
typeof_eq_undefined_unsafe: {
|
||||
|
||||
Reference in New Issue
Block a user