We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Intl.DateTimeFormat
1 parent 626ca4e commit e15093cCopy full SHA for e15093c
crates/oxc_linter/src/rules/eslint/new_cap.rs
@@ -750,6 +750,10 @@ fn test() {
750
("Date?.UTC();", None), // { "ecmaVersion": 2020 },
751
("(Date?.UTC)();", None), // { "ecmaVersion": 2020 }
752
(r#"expect(1)[""](1);"#, None),
753
+ (
754
+ "let tz = Intl.DateTimeFormat().resolvedOptions().timezone()",
755
+ Some(serde_json::json!([{ "capIsNewExceptions": ["Intl.DateTimeFormat"] }])),
756
+ ),
757
];
758
759
let fail = vec![
0 commit comments