We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
try { throw 'FAIL'; } catch (t) { var t = 'PASS'; assert.strictEqual(t, 'PASS'); } let a = 1; let def = 'PASS2'; try { throw ['FAIL2', 'PASS1']; } catch ({ [a]: b, 3: d = def }) { let a = 0, def = 'FAIL3'; assert.strictEqual(b, 'PASS1'); assert.strictEqual(d, 'PASS2'); }
def in d = def and a in [a]: b resolve to a wrong binding.
def
d = def
a
[a]: b
visualized scope id by #2498
try{ throw 'FAIL'; }catch(t#2){ var t#2 = 'PASS'; assert.strictEqual(t#2, 'PASS'); }let a#0 = 1; let def#0 = 'PASS2'; try{ throw ['FAIL2', 'PASS1']; }catch({[a#4]:b#4, 3:d#4=def#4}){ let a#4 = 0, def#4 = 'FAIL3'; assert.strictEqual(b#4, 'PASS1'); assert.strictEqual(d#4, 'PASS2'); }
The text was updated successfully, but these errors were encountered:
Function has the same problem https://oxc-project.github.io/oxc/playground/?code=3YCAAIC3gICAgICAgIC2mcpqpfg0bJ3l1O9KqJv6E8PIUGD5MreVxJAuzXWAqy4azqlFqoM3Ffc0nKc8M1d%2Ff21nQIA%3D
Sorry, something went wrong.
ping
fix(semantic): correctly resolve identifiers inside catch parameter i…
84c43c8
…nitializers (#3050) closes #2499
Boshen
Dunqing
Successfully merging a pull request may close this issue.
input
def
ind = def
anda
in[a]: b
resolve to a wrong binding.visualized scope id by #2498
The text was updated successfully, but these errors were encountered: