dillon1000/react
Commit
Browse files Repro for scopes from AnalyzeFunction influencing outer compilation
We share identifiers between outer functions and inner function expressions, which means that scopes inferred during AnalyzeFunctions can be retained on Identifiers in the outer function. If InferReactiveScopeVariables doesn't happen to visit an identifier we currently retain that scope information and use it when constructing scopes, even if there doesn't technically need to be a scope for that value. Fixed in the next PR.
Changed paths2 files
First-parent comparisoncompiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/repro-mutable-range-shared-inner-outer-function.expect.md AddedA compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/repro-mutable-range-shared-inner-outer-function.js AddedPatch
Files changed
Rendering syntax-highlighted changes…