Browse Source

Test ignored inline constructor expression not cancelling.

Mario 1 year ago
parent
commit
257a55e71f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tests/optimization/src/TestInlineConstructors.hx

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

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