Browse Source

[js] add @:pure to `js.Boot.getClass` and `js.Boot.__interfLoop`

Dan Korostelev 6 years ago
parent
commit
f3f7738e2f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      std/js/Boot.hx

+ 2 - 2
std/js/Boot.hx

@@ -57,7 +57,7 @@ class Boot {
 		return untyped __define_feature__("js.Boot.isEnum", e.__ename__);
 		return untyped __define_feature__("js.Boot.isEnum", e.__ename__);
 	}
 	}
 
 
-	static function getClass(o:Null<Dynamic>) : Null<Dynamic> {
+	@:pure static function getClass(o:Null<Dynamic>) : Null<Dynamic> {
 		if (o == null) {
 		if (o == null) {
 			return null;
 			return null;
 		} else if (Std.is(o, Array)) {
 		} else if (Std.is(o, Array)) {
@@ -160,7 +160,7 @@ class Boot {
 		}
 		}
 	}
 	}
 
 
-	private static function __interfLoop(cc : Dynamic,cl : Dynamic) {
+	@:pure private static function __interfLoop(cc : Dynamic,cl : Dynamic) {
 		if( cc == null )
 		if( cc == null )
 			return false;
 			return false;
 		if( cc == cl )
 		if( cc == cl )