Skip to content

Commit 6874a8b

Browse files
author
Ben Baumgold
committed
simplify and add comment
1 parent 80345b1 commit 6874a8b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/TableView.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,8 @@ function _showtable_async!(w, schema, types, rows, tablelength, id, options, opt
274274
onimport(w, handler)
275275
end
276276

277-
function _is_javascript_safe(x)
278-
false
279-
end
277+
# By default all objects must use repr or sprint
278+
_is_javascript_safe(x::Real) = false
280279

281280
function _is_javascript_safe(x::Integer)
282281
min_safe_int = -(Int64(2)^53-1)

0 commit comments

Comments
 (0)