Browse Source

fix List iterator inlining test

Dan Korostelev 9 năm trước cách đây
mục cha
commit
a3b5f91019
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      tests/optimization/src/TestJs.hx

+ 1 - 1
tests/optimization/src/TestJs.hx

@@ -31,7 +31,7 @@ class TestJs {
 	//Std.string(x);
 	//}
 
-	@:js("var a = new List();var _g_head = a.h;var _g_val = null;while(_g_head != null) {var tmp;_g_val = _g_head[0];_g_head = _g_head[1];tmp = _g_val;}")
+	@:js("var a = new List();var _g_head = a.h;var _g_val = null;while(_g_head != null) {var tmp;_g_val = _g_head.item;_g_head = _g_head.next;tmp = _g_val;}")
 	static function testListIteratorInline() {
 		var a = new List();
 		for (v in a) { }