diff src/luan/modules/http/tools/Luan_threads.luan @ 1260:4b5b84853f6f

replace Table.as_table with Luan.to_table
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 23 Sep 2018 22:32:34 -0600
parents 299996e03876
children 198d6af7330a
line wrap: on
line diff
--- a/src/luan/modules/http/tools/Luan_threads.luan	Sun Sep 23 17:58:40 2018 -0600
+++ b/src/luan/modules/http/tools/Luan_threads.luan	Sun Sep 23 22:32:34 2018 -0600
@@ -6,7 +6,6 @@
 java()
 local Thread = require "java:java.lang.Thread"
 local LuanException = require "java:luan.LuanException"
-local JavaLuan = require "java:luan.Luan"
 
 
 local Luan_threads = {}
@@ -32,7 +31,7 @@
 		<%
 		local count = 0
 		for _, thread in Luan.ipairs(threads) do
-			local luan_trace = JavaLuan.table(LuanException.justLuan(thread.trace))
+			local luan_trace = Luan.to_table(LuanException.justLuan(thread.trace)) or error()
 			if #luan_trace > 0 then
 				%>
 				<p><%=thread.string%> <%=thread.state%>