mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
Code in static property initializers moves from inside the class to outside. If environment outside the class is not strict mode, then scopes within the initializer become sloppy mode. Update `ScopeFlags` for scopes in static prop initializers accordingly. We're following Babel for now, but this isn't actually correct. The initializers should be wrapped in a strict mode IIFE to maintain their strict mode behavior. But at least semantic data is now correct for the output. |
||
|---|---|---|
| .. | ||
| babel-plugin-transform-arrow-functions/test/fixtures | ||
| babel-plugin-transform-async-generator-functions/test/fixtures | ||
| babel-plugin-transform-async-to-generator/test/fixtures | ||
| babel-plugin-transform-class-properties/test/fixtures | ||
| babel-plugin-transform-class-static-block/test/fixtures | ||
| babel-plugin-transform-exponentiation-operator/test/fixtures | ||
| babel-plugin-transform-logical-assignment-operators/test/fixtures | ||
| babel-plugin-transform-nullish-coalescing-operator/test/fixtures | ||
| babel-plugin-transform-object-rest-spread/test/fixtures/object-rest | ||
| babel-plugin-transform-optional-catch-binding/test/fixtures | ||
| babel-plugin-transform-react-jsx/test/fixtures | ||
| babel-plugin-transform-react-jsx-source/test/fixtures/react-source | ||
| babel-plugin-transform-typescript/test/fixtures | ||
| babel-preset-typescript/test/fixtures/removeImportExtensions | ||
| regexp/test/fixtures | ||