Explorar el Código

[lua] fix jit detection in tests

Justin Donaldson hace 8 años
padre
commit
97d262bc2a
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      tests/sys/src/TestCommandBase.hx

+ 2 - 2
tests/sys/src/TestCommandBase.hx

@@ -41,7 +41,7 @@ class TestCommandBase extends haxe.unit.TestCase {
 			#elseif php
 				run(untyped __php__("defined('PHP_BINARY') ? PHP_BINARY : 'php'"), [bin].concat(args));
 			#elseif lua
-				if (untyped lua.jit != null){
+				if (lua.Lua.type(untyped jit) == "table"){
 					run("luajit", [bin].concat(args));
 				} else {
 					run("lua", [bin].concat(args));
@@ -129,7 +129,7 @@ class TestCommandBase extends haxe.unit.TestCase {
 				#elseif php
 					run(untyped __php__("defined('PHP_BINARY') ? PHP_BINARY : 'php'"), [bin].concat(args));
 				#elseif lua
-					if (untyped lua.jit != null){
+					if (lua.Lua.type(untyped jit) == "table"){
 						run("luajit", [bin].concat(args));
 					} else {
 						run("lua", [bin].concat(args));