mirror of
https://github.com/swc-project/swc.git
synced 2025-01-02 10:37:56 +03:00
33a43f85b1
swc_ecma_minifier: - Implement more rules. swc_ecma_transforms_base: - `resolver`: Fix syntax context of catch block. swc_ecma_transforms_optimization: - `expr_simplifier`: Fix a bug related to `this` of call expressions. - `dead_branch_remover`: Don't reduce switch cases if test is now known. - `dead_branch_remover`: Don't break `&&`.
15 lines
259 B
JavaScript
15 lines
259 B
JavaScript
var obj1 = {
|
|
valueOf: function() {
|
|
triggeredFirst();
|
|
}
|
|
};
|
|
var obj2 = {
|
|
valueOf: function() {
|
|
triggeredSecond();
|
|
}
|
|
};
|
|
var result1 = obj2 >= obj1;
|
|
var result2 = obj2 > obj1;
|
|
var result3 = obj1 >= obj2;
|
|
var result4 = obj1 > obj2;
|