comparison src/luan/modules/Parsers.luan @ 1775:e380ab6c0c78

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 27 Jul 2023 17:52:52 -0600
parents 764723436f05
children f8f5c51f5b36
comparison
equal deleted inserted replaced
1774:764723436f05 1775:e380ab6c0c78
34 obj = JsonParser.parse(s) 34 obj = JsonParser.parse(s)
35 catch e 35 catch e
36 local java = e.java.getCause() 36 local java = e.java.getCause()
37 if java~=nil and java.instanceof(ParseException) then 37 if java~=nil and java.instanceof(ParseException) then
38 e.message = java.getSuperMessage() 38 e.message = java.getSuperMessage()
39 e.text = java.text or error() 39 e.text = java.text
40 e.error_index = java.errorIndex or error() 40 e.error_index = java.errorIndex
41 e.high_index = java.highIndex or error() 41 e.high_index = java.highIndex
42 end 42 end
43 e.throw() 43 e.throw()
44 end 44 end
45 return type(obj)=="java" and java_to_table_deep(obj) or obj 45 return type(obj)=="java" and java_to_table_deep(obj) or obj
46 end 46 end