Bladeren bron

Lua: Io needs the _G prefix for native requires

Justin Donaldson 9 jaren geleden
bovenliggende
commit
41f069482c
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  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;