Browse Source

[lua] fix jit detection in tests

Justin Donaldson 8 years ago
parent
commit
97d262bc2a
1 changed files with 2 additions and 2 deletions
  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));