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

hashlink try catch set bug #11466

Closed
PXshadow opened this issue Jan 5, 2024 · 4 comments
Closed

hashlink try catch set bug #11466

PXshadow opened this issue Jan 5, 2024 · 4 comments
Assignees
Labels
platform-hl Everything related to HashLink

Comments

@PXshadow
Copy link
Contributor

PXshadow commented Jan 5, 2024

var b = 10;

function main() {
  var x = 0;
  try {
    x = b;
    throw "hi";
  }catch(_) {
    trace(x);
  }
}

Returns 0, expected 10

https://try.haxe.org/#806c75c6
Haxe latest

@Simn
Copy link
Member

Simn commented Jan 5, 2024

Could you try with -D hl_no_opt?

@kLabz
Copy link
Contributor

kLabz commented Jan 5, 2024

Sounds like #9174
And yeah seems to be a hl-opt issue

@Simn
Copy link
Member

Simn commented Jan 5, 2024

That one was about nested try/catch though, while this seems really basic... Maybe something else for @yuxiaomao to check out.

@PXshadow
Copy link
Contributor Author

PXshadow commented Jan 5, 2024

Could you try with -D hl_no_opt?

Passes with -D hl_no_opt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform-hl Everything related to HashLink
Projects
None yet
Development

No branches or pull requests

4 participants