Browse Source

[js] mark js.Lib.typeof as @:pure (doesn't help much since it's an inlined untyped, but maybe in future...)

Dan Korostelev 8 years ago
parent
commit
13d579d6f0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/js/Lib.hx

+ 1 - 1
std/js/Lib.hx

@@ -93,7 +93,7 @@ class Lib {
 
 
 		Read more at https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof
 		Read more at https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof
 	**/
 	**/
-	@:extern public static inline function typeof(o:Dynamic):String {
+	@:pure @:extern public static inline function typeof(o:Dynamic):String {
 		return untyped __typeof__(o);
 		return untyped __typeof__(o);
 	}
 	}