Skip to content

Commit c1fabb3

Browse files
authored
Merge pull request #82 from baumgold/is_javascript_safe
add default is_javascript_safe() function
2 parents 965f404 + 6874a8b commit c1fabb3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "TableView"
22
uuid = "40c74d1a-b44c-5b06-a7c1-6cbea58ea978"
3-
version = "0.7.0"
3+
version = "0.7.1"
44

55
[deps]
66
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"

src/TableView.jl

+3
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,9 @@ function _showtable_async!(w, schema, types, rows, tablelength, id, options, opt
274274
onimport(w, handler)
275275
end
276276

277+
# By default all objects must use repr or sprint
278+
_is_javascript_safe(x::Real) = false
279+
277280
function _is_javascript_safe(x::Integer)
278281
min_safe_int = -(Int64(2)^53-1)
279282
max_safe_int = Int64(2)^53-1

0 commit comments

Comments
 (0)