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:
Justin Lau
2013-05-05 20:38:32 +08:00
committed by Mihai Bazon
parent 672699613e
commit a1958aad56
2 changed files with 10 additions and 11 deletions

View File

@@ -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: {