Browse Source

[js] mark Reflect.hasField as @:pure

Dan Korostelev 9 years ago
parent
commit
d3ea417a74
1 changed files with 1 additions and 0 deletions
  1. 1 0
      std/js/_std/Reflect.hx

+ 1 - 0
std/js/_std/Reflect.hx

@@ -21,6 +21,7 @@
  */
  */
 @:coreApi class Reflect {
 @:coreApi class Reflect {
 
 
+	@:pure
 	public inline static function hasField( o : Dynamic, field : String ) : Bool {
 	public inline static function hasField( o : Dynamic, field : String ) : Bool {
 		return untyped __js__('Object').prototype.hasOwnProperty.call(o, field);
 		return untyped __js__('Object').prototype.hasOwnProperty.call(o, field);
 	}
 	}