Skip to content

Commit

Permalink
[tests] remove tre test for instance method
Browse files Browse the repository at this point in the history
Instance methods are not supported for tre, see
#8953 (comment)

Also note that this test was previously ignored as our optimization
tests only considered static fields.
  • Loading branch information
kLabz committed Feb 4, 2025
1 parent aea90fa commit 2fafc66
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions tests/optimization/src/TestTreGeneration.hx
Original file line number Diff line number Diff line change
Expand Up @@ -25,32 +25,6 @@ class TestTreGeneration {
return s == null ? a : b;
}

@:js('
if(b == null) {
b = 10;
}
while(true) {
if(Std.random(2) == 0) {
var _gtmp1 = a;
a = b + a;
b = _gtmp1;
s += "?";
continue;
}
if(s == null) {
return a;
} else {
return b;
}
}
')
function testInstanceMethod(a:Int, b:Int = 10, ?s:String):Int {
if(Std.random(2) == 0) {
return testInstanceMethod(b + a, a, s + '?');
}
return s == null ? a : b;
}

@:js('
var local = null;
local = function(a,b,s) {
Expand Down

0 comments on commit 2fafc66

Please sign in to comment.