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

[eval] Broken exception handling #11321

Closed
RealyUniqueName opened this issue Sep 28, 2023 · 1 comment
Closed

[eval] Broken exception handling #11321

RealyUniqueName opened this issue Sep 28, 2023 · 1 comment
Assignees
Labels
platform-eval Everything related to the Haxe 4 eval macro interpreter platform-hl Everything related to HashLink regression

Comments

@RealyUniqueName
Copy link
Member

class Main {
	static function main() {
		try {
			throw new SampleException('Terrible error');
		} catch(e:haxe.ValueException) {
			trace('should not happen');
		} catch(e) {
			trace('success');
		}
	}
}

class SampleException extends haxe.Exception {}

4.3.1:

$ haxe --main Main --interp
Main.hx:8: success

Since 4.3.2:

$ haxe --main Main --interp
Main.hx:3: lines 3-9 : Uncaught exception Terrible error
@RealyUniqueName RealyUniqueName added platform-eval Everything related to the Haxe 4 eval macro interpreter regression labels Sep 28, 2023
@kLabz kLabz self-assigned this Sep 28, 2023
@kLabz kLabz added the platform-hl Everything related to HashLink label Sep 28, 2023
@kLabz kLabz added this to the 4.3 Hotfix milestone Sep 28, 2023
@Simn
Copy link
Member

Simn commented Sep 28, 2023

Oh no...

@kLabz kLabz closed this as completed in 269fef4 Sep 28, 2023
kLabz added a commit that referenced this issue Nov 14, 2023
@kLabz kLabz removed this from the 4.3 Hotfix milestone Nov 14, 2023
0b1kn00b pushed a commit to 0b1kn00b/haxe that referenced this issue Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform-eval Everything related to the Haxe 4 eval macro interpreter platform-hl Everything related to HashLink regression
Projects
None yet
Development

No branches or pull requests

3 participants