This repository was archived by the owner on Aug 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 653
fix(rome_js_semantic):should push a new scope when meet a function expression #2973
Merged
leops
merged 8 commits into
rome:main
from
IWANABETHATGUY:fix/new-scope-function-expression
Aug 1, 2022
Merged
fix(rome_js_semantic):should push a new scope when meet a function expression #2973
leops
merged 8 commits into
rome:main
from
IWANABETHATGUY:fix/new-scope-function-expression
Aug 1, 2022
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!bench_analyzer |
Analyzer Benchmark Results
|
xunilrj
approved these changes
Jul 30, 2022
Mind creating some extra tests? var f/*#F1*/ = function f/*#F2*/() {console.log(f/*READ F2*/);}", var f/*#F1*/ = function () {console.log(f/*READ F1*/);}", let f/*#F1*/ = 1; let g = function f/*#F2*/() {console.log(2, f/*READ F2*/);}", let f/*#F*/ = function g/*#G*/(){}; g/*?*/();", The last one needs a new assertion "?" that matches |
Done |
Approved. |
leops
approved these changes
Aug 1, 2022
IWANABETHATGUY
added a commit
to IWANABETHATGUY/tools
that referenced
this pull request
Aug 22, 2022
…pression (rome#2973) * fix: 🐛 function expression should push new scope * fix: 🐛 semantic scope * fix: 🐛 remove mainn * fix: 🐛 pop scope when leave function expr * style: 💄 fmt * chore: 🤖 revert * chore: 🤖 rever t * test: 💍 more read test case
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
https://play.rome.tools/?code=var+test+%3D+function+test%28a%2C+b%2C+c%29+%7B%0A%0A%7D&lineWidth=80&indentStyle=tab"eStyle=double&indentWidth=2&sourceType=module&typescript=false&jsx=false#dgBhAHIAIAB0AGUAcwB0ACAAPQAgAGYAdQBuAGMAdABpAG8AbgAgAHQAZQBzAHQAKABhACwAIABiACwAIABjACkAIAB7AAoACgB9AA==
Test Plan