HaxeFoundation / HaxeFoundation/haxe

[cppia] exception is not thrown inside of `while(true)`

Open
#8,915 3 comments 0 reactions 1 assignee Claimed by @hughsando View on GitHub
bug platform-cpp
Dominant language
Haxe
Stars
6.9k
Forks
715
Avg merge
2d 2h
Merged PRs (30d)
11

Description

```haxe
class Main {
static public function main() {
function loop() {
while(true) {
exit();
continue;
}
}
try {
loop();
} catch(e:String) {
trace('ok');
}
}

static function exit() {
throw 'exit';
}
}
```
Hangs forever at runtime with cppia

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.