GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — [compiler] Implement support for hoisted and recursive functions by mvitousek · Pull Request #30922 · react/react Conversation
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| case InstructionKind.HoistedFunction: | ||
| CompilerError.invariant(false, { | ||
| reason: 'Unexpected HoistedFunction variable in for..in collection', | ||
| description: null, | ||
| loc: iterableItem.loc, | ||
| suggestions: null, | ||
| }); | ||
| case InstructionKind.Function: | ||
| CompilerError.invariant(false, { | ||
| reason: 'Unexpected Function variable in for..in collection', | ||
| description: null, | ||
| loc: iterableItem.loc, | ||
| suggestions: null, | ||
| }); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
we could just collapse all these unsupported cases
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| case InstructionKind.HoistedFunction: | ||
| CompilerError.invariant(false, { | ||
| reason: 'Unexpected HoistedFunction variable in for..of collection', | ||
| description: null, | ||
| loc: iterableItem.loc, | ||
| suggestions: null, | ||
| }); | ||
| case InstructionKind.Function: | ||
| CompilerError.invariant(false, { | ||
| reason: 'Unexpected Function variable in for..of collection', | ||
| description: null, | ||
| loc: iterableItem.loc, | ||
| suggestions: null, | ||
| }); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
same here
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
wow awesome!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ctions" Summary: Introduces a new binding kind for functions that allows them to be hoisted. Also has the result of causing all nested function declarations to be outputted as function declarations, not as let bindings. [ghstack-poisoned]
…ctions" Summary: Introduces a new binding kind for functions that allows them to be hoisted. Also has the result of causing all nested function declarations to be outputted as function declarations, not as let bindings. [ghstack-poisoned]
Summary: Introduces a new binding kind for functions that allows them to be hoisted. Also has the result of causing all nested function declarations to be outputted as function declarations, not as let bindings. ghstack-source-id: fa40d49 Pull Request resolved: #30922 DiffTrain build for [d7167c3](d7167c3)
**breaking change for canary users: Bumps peer dependency of React from `19.0.0-rc-206df66e-20240912` to `19.0.0-rc-a99d8e8d-20240916`** [diff react/react@206df66e...a99d8e8d](react/react@206df66...a99d8e8) <details> <summary>React upstream changes</summary> - react/react#30977 - react/react#30971 - react/react#30922 - react/react#30917 - react/react#30902 - react/react#30912 - react/react#30970 - react/react#30969 - react/react#30967 - react/react#30966 - react/react#30960 - react/react#30968 - react/react#30961 - react/react#28255 - react/react#30957 - react/react#30958 - react/react#30959 - react/react#30951 - react/react#30954 - react/react#30920 - react/react#30942 </details>
Summary: Introduces a new binding kind for functions that allows them to be hoisted. Also has the result of causing all nested function declarations to be outputted as function declarations, not as let bindings. ghstack-source-id: fa40d49 Pull Request resolved: react#30922
ad41acfa
Deployed
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.