diff src/luan/modules/http/tools/Luan_threads.luan @ 1261:198d6af7330a

rename Luan.to_table to Table.java_to_table_shallow and Luan.to_luan to Table.java_to_table_deep
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 24 Sep 2018 13:09:16 -0600
parents 4b5b84853f6f
children 8d95711f6615
line wrap: on
line diff
--- a/src/luan/modules/http/tools/Luan_threads.luan	Sun Sep 23 22:32:34 2018 -0600
+++ b/src/luan/modules/http/tools/Luan_threads.luan	Mon Sep 24 13:09:16 2018 -0600
@@ -1,5 +1,7 @@
 local Luan = require "luan:Luan.luan"
 local error = Luan.error
+local Table = require "luan:Table.luan"
+local java_to_table_shallow = Table.java_to_table_shallow or error()
 local Io = require "luan:Io.luan"
 local Time = require "luan:Time.luan"
 local Http = require "luan:http/Http.luan"
@@ -31,7 +33,7 @@
 		<%
 		local count = 0
 		for _, thread in Luan.ipairs(threads) do
-			local luan_trace = Luan.to_table(LuanException.justLuan(thread.trace)) or error()
+			local luan_trace = java_to_table_shallow(LuanException.justLuan(thread.trace))
 			if #luan_trace > 0 then
 				%>
 				<p><%=thread.string%> <%=thread.state%>