Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit f991878

Browse files
authored
chore(deps): Update string-cache (#743)
**Description:** I want to check the performance difference caused by servo/string-cache#268.
1 parent 2ee8264 commit f991878

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/stc_ts_file_analyzer/tests/builtin.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use std::sync::Arc;
33
use stc_ts_builtin_types::Lib;
44
use stc_ts_env::{BuiltIn, Env, ModuleConfig, StableEnv};
55
use stc_ts_file_analyzer::env::BuiltInGen;
6+
use swc_atoms::JsWord;
67
use swc_common::DUMMY_SP;
78

89
#[test]
@@ -88,7 +89,7 @@ pub fn intl() {
8889
let i = intl.expect_module();
8990
let type_names = i.exports.types.iter().map(|v| v.0).collect::<Vec<_>>();
9091
eprintln!("Type names: {:?}", type_names);
91-
assert!(i.exports.types.contains_key(&"NumberFormatOptions".into()));
92+
assert!(i.exports.types.contains_key(&JsWord::from("NumberFormatOptions")));
9293
}
9394

9495
Ok(())

0 commit comments

Comments
 (0)