Skip to content

Commit

Permalink
fix: Make evaluation order not flaky (#850)
Browse files Browse the repository at this point in the history
**Related issue:**

 - swc-project/swc#7133.
  • Loading branch information
kdy1 committed Mar 23, 2023
1 parent 3bee288 commit 1424cac
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 27 deletions.
34 changes: 17 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/stc_ts_builtin_macro/src/lib.rs
Expand Up @@ -245,7 +245,7 @@ pub fn builtin(_: proc_macro::TokenStream) -> proc_macro::TokenStream {
}
));

print("builtin", tokens)
print("builtin", tokens.into())
})
}

Expand Down
2 changes: 1 addition & 1 deletion crates/stc_ts_module_loader/Cargo.toml
Expand Up @@ -32,5 +32,5 @@ swc_ecma_ast = "0.100.2"
swc_ecma_loader = "0.41.39"
swc_ecma_parser = "0.130.5"
swc_ecma_visit = "0.86.2"
swc_fast_graph = "0.17.16"
swc_fast_graph = "0.17.41"
tracing = "0.1.37"
2 changes: 1 addition & 1 deletion crates/stc_ts_ordering/Cargo.toml
Expand Up @@ -22,7 +22,7 @@ stc_ts_types = {path = "../stc_ts_types"}
stc_ts_utils = {path = "../stc_ts_utils"}
swc_atoms = "0.4.39"
swc_common = "0.29.37"
swc_fast_graph = "0.17.16"
swc_fast_graph = "0.17.41"
swc_graph_analyzer = "0.18.16"
tracing = "0.1.37"

Expand Down
2 changes: 1 addition & 1 deletion crates/stc_ts_type_checker/Cargo.toml
Expand Up @@ -45,7 +45,7 @@ swc_ecma_parser = "0.130.5"
swc_ecma_transforms = "0.212.14"
swc_ecma_transforms_base = "0.122.11"
swc_ecma_visit = "0.86.2"
swc_fast_graph = "0.17.16"
swc_fast_graph = "0.17.41"
tracing = {version = "0.1.37", features = ["release_max_level_trace"]}

[dev-dependencies]
Expand Down
Expand Up @@ -31,11 +31,12 @@
]
},
"extra_errors": {
"TS2304": 1
"TS2304": 2
},
"extra_error_lines": {
"TS2304": [
62
62,
83
]
}
}
@@ -1,6 +1,6 @@
Stats {
required_error: 21,
matched_error: 0,
extra_error: 1,
extra_error: 2,
panic: 0,
}
Expand Up @@ -22,9 +22,9 @@
6,
7,
23,
25,
29,
33
33,
34
]
}
}
2 changes: 1 addition & 1 deletion crates/stc_ts_type_checker/tests/tsc-stats.rust-debug
@@ -1,6 +1,6 @@
Stats {
required_error: 3804,
matched_error: 6299,
extra_error: 843,
extra_error: 844,
panic: 107,
}

0 comments on commit 1424cac

Please sign in to comment.