Skip to content

[cppia] Exception control flow breaks with local functions in jit mode #1185

Closed as duplicate of#876
@tobil4sk

Description

@tobil4sk
function other() {
	throw new haxe.Exception("hi");
}

function main() {
	sys.thread.Thread.create(() -> {
		other();
		trace("Continued past exception!");
	});
	Sys.sleep(1);
}

When the exception occurs in a different function, the program just continues running past it...

src/CppiaTest.hx:8: Continued past exception!

If the exception is instead thrown in the thread function, then the execution stops as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions