diff --git a/crates/oxc_minifier/tests/ecmascript/value_type.rs b/crates/oxc_minifier/tests/ecmascript/value_type.rs index 9fb5528637926..25c9716ca56da 100644 --- a/crates/oxc_minifier/tests/ecmascript/value_type.rs +++ b/crates/oxc_minifier/tests/ecmascript/value_type.rs @@ -202,6 +202,14 @@ fn logical_tests() { #[test] fn undetermined_tests() { + test("foo++", ValueType::Undetermined); // can be number or bigint + test("foo--", ValueType::Undetermined); // can be number or bigint + + test("foo ||= 1", ValueType::Undetermined); + test("foo &&= 1", ValueType::Undetermined); + test("foo ??= 1", ValueType::Undetermined); + + test("this", ValueType::Undetermined); test("foo()", ValueType::Undetermined); test("''.foo", ValueType::Undetermined); test("foo.bar", ValueType::Undetermined);