فهرست منبع

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

Simon Krajewski 9 سال پیش
والد
کامیت
e8d92e7479
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  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 {
 
 	/**