|
@@ -1,4 +1,3 @@
|
|
|
-#if !php
|
|
|
// hasField
|
|
|
var x = { a: 1, b: null };
|
|
|
Reflect.hasField(x, "a") == true;
|
|
@@ -36,10 +35,10 @@ c.v == "bar";
|
|
|
var c = new C2();
|
|
|
Reflect.getProperty(c, "v") == "var";
|
|
|
Reflect.getProperty(c, "prop") == "prop";
|
|
|
-//Reflect.getProperty(c, "func")() == "foo";
|
|
|
+Reflect.getProperty(c, "func")() == "foo";
|
|
|
Reflect.getProperty(c, "propAcc") == "1";
|
|
|
-//Reflect.getProperty(null, "a") == null;
|
|
|
-//Reflect.getProperty(null, null) == null;
|
|
|
+Reflect.getProperty(null, "a") == null;
|
|
|
+Reflect.getProperty(null, null) == null;
|
|
|
|
|
|
// setProperty
|
|
|
Reflect.setProperty(x, "a", 2);
|
|
@@ -51,8 +50,8 @@ Reflect.setProperty(c, "v", "bar");
|
|
|
c.v == "bar";
|
|
|
//Reflect.setProperty(c, "v2", "bar2");
|
|
|
//c.v2 == "bar";
|
|
|
-//Reflect.setProperty(c, "func2", function() return "x");
|
|
|
-//Reflect.field(c, "func2")() == "x";
|
|
|
+Reflect.setProperty(c, "func2", function() return "x");
|
|
|
+Reflect.field(c, "func2")() == "x";
|
|
|
Reflect.setProperty(c, "propAcc", "abc");
|
|
|
#if !as3
|
|
|
// not supported on AS3
|
|
@@ -154,4 +153,3 @@ Reflect.isEnumValue(true) == false;
|
|
|
Reflect.isEnumValue(null) == false;
|
|
|
var x:C = null;
|
|
|
Reflect.isEnumValue(x) == false;
|
|
|
-#end
|