瀏覽代碼

fix test 8053

Alexander Kuzmenko 6 年之前
父節點
當前提交
af9ad1d9bb
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      tests/unit/src/unit/issues/Issue8053.hx

+ 1 - 0
tests/unit/src/unit/issues/Issue8053.hx

@@ -11,6 +11,7 @@ class Issue8053 extends unit.Test {
 
 		#if !php
 		var a:Dynamic = { };
+		Reflect.setField(a, b, 1);
 		#else
 		var a:Dynamic = if(PHP_VERSION_ID < 70100) {
 			//Prior to PHP 7.1.0 there was no way to add a property with an empty name to an existing object.