Skip to content
New issue

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

Incorrect identifiers for subexpressions defined outside the outer scope of two nested scopes #1

Open
shurko0x4cfd opened this issue Nov 2, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@shurko0x4cfd
Copy link
Owner

Failed:

12 34 true true [ [ swap ] [ 1 2 ] if ] [ 1 2 ] if .js .eval

Result:

var cond_1 = "true";
var subex_5 = "true";
var subex_6 = 34;
var subex_7 = 12;

if (cond_1)
{
    if (cond_0)
{
        var subex_3 = subex_6;
        var subex_2 = subex_7;
    } else {
        var subex_3 = 1;
        var subex_2 = 2;
}
} else {
    var subex_3 = 1;
    var subex_2 = 2;
}

Environment exception:

ReferenceError: cond_0 is not defined
  1. Wrong var subex_5 = instead of var cond_0 =
  2. Wrong = "true"; instead of = true;
@shurko0x4cfd shurko0x4cfd added the bug Something isn't working label Nov 2, 2023
@shurko0x4cfd
Copy link
Owner Author

= "true"; fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant