diff src/luan/modules/http/tools/luan_threads.luan @ 1164:1f9d34a6f308

remove assertions
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 07 Feb 2018 17:36:38 -0700
parents 0842b9b570f8
children 5dbb552075ff
line wrap: on
line diff
--- a/src/luan/modules/http/tools/luan_threads.luan	Tue Feb 06 22:04:47 2018 -0700
+++ b/src/luan/modules/http/tools/luan_threads.luan	Wed Feb 07 17:36:38 2018 -0700
@@ -1,12 +1,12 @@
 local Luan = require "luan:Luan.luan"
 local error = Luan.error
-local assert_table = Luan.assert_table or error()
 local Io = require "luan:Io.luan"
 local Time = require "luan:Time.luan"
 local Http = require "luan:http/Http.luan"
 java()
 local Thread = require "java:java.lang.Thread"
 local LuanException = require "java:luan.LuanException"
+local JavaLuan = require "java:luan.Luan"
 
 
 return function()
@@ -29,7 +29,7 @@
 		<%
 		local count = 0
 		for _, thread in Luan.ipairs(threads) do
-			local luan_trace = assert_table(LuanException.justLuan(thread.trace))
+			local luan_trace = JavaLuan.table(LuanException.justLuan(thread.trace))
 			if #luan_trace > 0 then
 				%>
 				<p><%=thread.string%> <%=thread.state%>