Explorar o código

make haxe.web.Request #error if on a bad target (closes #5535)

Simon Krajewski %!s(int64=9) %!d(string=hai) anos
pai
achega
e8d92e7479
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      std/haxe/web/Request.hx

+ 4 - 0
std/haxe/web/Request.hx

@@ -21,6 +21,10 @@
  */
 package haxe.web;
 
+#if (!neko && !php && !js)
+#error "Not supported on this target"
+#end
+
 class Request {
 
 	/**