2
0
Эх сурвалжийг харах

Test ignored inline constructor expression not cancelling.

Mario 1 жил өмнө
parent
commit
257a55e71f

+ 2 - 0
tests/optimization/src/TestInlineConstructors.hx

@@ -138,7 +138,9 @@ class TestInlineConstructors extends TestBase {
 	}
 	}
 
 
 	static var condition = false;
 	static var condition = false;
+	@:js('while(TestInlineConstructors.condition) {}try {} catch( _g ) {}return 1;')
 	static function testIgnoredValuesNotCancelling() {
 	static function testIgnoredValuesNotCancelling() {
+		new ExternInlineClass();
 		var a = new ExternInlineClass();
 		var a = new ExternInlineClass();
 		if ( condition ) a else a;
 		if ( condition ) a else a;
 		while ( condition ) a;
 		while ( condition ) a;