Explorar o código

[lua] fix jit detection in tests

Justin Donaldson %!s(int64=8) %!d(string=hai) anos
pai
achega
97d262bc2a
Modificáronse 1 ficheiros con 2 adicións e 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));