mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 12:51:57 +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-object-rest-spread/test/fixtures | ||
| babel-plugin-transform-optional-chaining/test/fixtures | ||
| babel.snap.md | ||
| babel_exec.snap.md | ||
| oxc.snap.md | ||
| oxc_exec.snap.md | ||