Explorar o código

report no method error

ncannasse %!s(int64=11) %!d(string=hai) anos
pai
achega
c1be6d4566
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      h2d/comp/Parser.hx

+ 2 - 0
h2d/comp/Parser.hx

@@ -8,6 +8,8 @@ private class CustomInterp extends hscript.Interp {
 			if( Reflect.field(o, rf) == null ) throw "JQuery don't have " + f + " implemented";
 			f = rf;
 		}
+		if( Reflect.field(o, f) == null )
+			throw o + " does not have method " + f;
 		return super.fcall(o, f, args);
 	}
 }