Browse Source

Lua: Io needs the _G prefix for native requires

Justin Donaldson 9 years ago
parent
commit
41f069482c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/lua/Io.hx

+ 1 - 1
std/lua/Io.hx

@@ -1,7 +1,7 @@
 package lua;
 package lua;
 import haxe.extern.Rest;
 import haxe.extern.Rest;
 
 
-@:native("io")
+@:native("_G.io")
 extern class Io {
 extern class Io {
 	public static function close(?file : FileHandle) : Void;
 	public static function close(?file : FileHandle) : Void;
 	public static function flush() : Void;
 	public static function flush() : Void;