oxc/crates
Dunqing 79a8fc6f7d fix(semantic): report error for super property appearing in function body (#8376)
Missing error that super property inside plain function.

```js
class C {
  constructor() {
    function g() {
      // * It is a Syntax Error if PropName of MethodDefinition is not "constructor" and HasDirectSuper of MethodDefinition is true.
      super();
    }
  }
  method() {
    function func() {
      // It is a Syntax Error if FunctionBody Contains SuperProperty is true.
      super.good();
    }
  }
}
```

I am not sure why test262 doesn't cover tests like that
2025-01-09 06:38:09 +00:00
..
oxc release(crates): v0.44.0 (#8110) 2024-12-25 21:03:09 +08:00
oxc_allocator feat(minifier): improve StatementFusion (#8194) 2024-12-31 01:13:24 +00:00
oxc_ast feat(minifier): merge assign expression in conditional expression (#8345) 2025-01-08 13:34:12 +00:00
oxc_ast_macros release(crates): v0.44.0 (#8110) 2024-12-25 21:03:09 +08:00
oxc_cfg release(crates): v0.44.0 (#8110) 2024-12-25 21:03:09 +08:00
oxc_codegen fix(codegen): fix incorrect minified return 1n output (#8374) 2025-01-09 05:01:41 +00:00
oxc_data_structures docs(data_structures): improve docs for stack types (#8356) 2025-01-08 20:49:28 +00:00
oxc_diagnostics release(crates): v0.44.0 (#8110) 2024-12-25 21:03:09 +08:00
oxc_ecmascript fix(minifier): do not fold object comparisons (#8375) 2025-01-09 05:47:35 +00:00
oxc_estree release(crates): v0.44.0 (#8110) 2024-12-25 21:03:09 +08:00
oxc_isolated_declarations refactor(ast): simplify get_identifier_reference of TSType and TSTypeName (#8273) 2025-01-06 08:23:53 +00:00
oxc_language_server refactor(linter): refactor LintBuilder to prep for nested configs (#8034) 2025-01-05 04:08:26 +00:00
oxc_linter test(linter): use plugin name instead of category for finding rule (#8353) 2025-01-09 10:48:11 +08:00
oxc_macros test(linter): use plugin name instead of category for finding rule (#8353) 2025-01-09 10:48:11 +08:00
oxc_mangler release(crates): v0.44.0 (#8110) 2024-12-25 21:03:09 +08:00
oxc_minifier fix(minifier): do not fold object comparisons (#8375) 2025-01-09 05:47:35 +00:00
oxc_napi release(crates): v0.44.0 (#8110) 2024-12-25 21:03:09 +08:00
oxc_parser fix(lexer): Source is not Clone (#8294) 2025-01-07 06:58:26 +00:00
oxc_prettier refactor(prettier): Update tasks/prettier to correctly handle snapshots (#8337) 2025-01-08 17:10:30 +08:00
oxc_regular_expression release(crates): v0.44.0 (#8110) 2024-12-25 21:03:09 +08:00
oxc_semantic fix(semantic): report error for super property appearing in function body (#8376) 2025-01-09 06:38:09 +00:00
oxc_span style(span): reformat code (#8296) 2025-01-06 13:57:58 +00:00
oxc_syntax feat(minifier): compress a || (a = b) to a ||= b (#8315) 2025-01-07 23:19:52 +00:00
oxc_transformer refactor(transformer/private-methods): simplify finding parent statement of class expression (#8364) 2025-01-09 03:17:41 +00:00
oxc_traverse release(crates): v0.44.0 (#8110) 2024-12-25 21:03:09 +08:00
oxc_wasm refactor(linter): refactor LintBuilder to prep for nested configs (#8034) 2025-01-05 04:08:26 +00:00