Skip to content

Commit 3bcc2f4

Browse files
authored
[tests] fix unit test 6059, 12047 not running (#12354)
* [tests] fix unit test 12047 not running * [tests] fix unit test 6059 not running * [cpp] Don't avoid exception wrapping for 12047
1 parent 34afbe8 commit 3bcc2f4

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

src/context/common.ml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,9 @@ let get_config com =
633633
pf_add_final_return = true;
634634
pf_supports_threads = true;
635635
pf_supports_unicode = (defined Define.Cppia) || not (defined Define.DisableUnicodeStrings);
636+
pf_exceptions = { default_config.pf_exceptions with
637+
ec_avoid_wrapping = false
638+
};
636639
pf_scoping = { default_config.pf_scoping with
637640
vs_flags = [NoShadowing];
638641
vs_scope = FunctionScope;

tests/unit/src/unit/issues/Issue12047.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package unit.issues;
33
import utest.Assert;
44

55
class Issue12047 extends Test {
6-
static function test() {
6+
function test() {
77
try {
88
throwCatchWrap();
99
} catch (err:Issue12047) {

tests/unit/src/unit/issues/Issue6059.hx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ package unit.issues;
33
class Issue6059 extends Test {
44
public static inline function foo (name : B, ?id : B, data : Array<String>) : Void { }
55

6-
public static function test () : Void {
6+
function test () : Void {
77
Issue6059.foo ("", []); // -> stackoverflow
88
Issue6059.foo ("", null, []); // ok
9+
utest.Assert.pass();
910
}
1011
}
1112

0 commit comments

Comments
 (0)