Bob Nystrom
3f126945df
fix: guard against non-string toString in IO.print and IO.write
...
Add writeObject_ helper that checks if obj.toString returns a String before
writing it, falling back to "[invalid toString]" otherwise. Update print,
write, and printList_ to use the new helper instead of calling toString
directly. Include test cases for both IO.print and IO.write with a class
whose toString returns an integer.
2015-01-08 15:53:37 +00:00
..
2014-04-03 02:41:53 +00:00
2014-01-05 20:27:12 +00:00
2014-04-09 14:48:35 +00:00
2014-04-09 14:48:35 +00:00
2014-04-25 00:52:53 +00:00
2015-01-04 21:00:53 +00:00
2014-04-04 14:51:18 +00:00
2014-04-09 14:48:35 +00:00
2015-01-01 18:40:14 +00:00
2014-04-03 02:41:53 +00:00
2014-04-19 18:41:21 +00:00
2014-04-09 14:48:35 +00:00
2014-04-19 18:41:21 +00:00
2014-04-09 00:54:37 +00:00
2014-04-03 02:41:53 +00:00
2015-01-08 15:53:37 +00:00
2014-04-04 14:51:18 +00:00
2015-01-03 18:02:45 +00:00
2014-04-08 14:31:23 +00:00
2014-01-21 02:12:55 +00:00
2014-04-09 04:18:17 +00:00
2014-04-04 14:51:18 +00:00
2014-02-24 15:27:43 +00:00
2014-01-28 23:31:11 +00:00
2014-04-03 02:41:53 +00:00
2014-04-03 14:48:19 +00:00
2014-04-09 00:54:37 +00:00
2015-01-04 19:09:33 +00:00
2014-04-03 02:41:53 +00:00
2014-04-09 04:17:49 +00:00
2014-04-19 18:51:36 +00:00
2014-04-03 14:48:19 +00:00
2014-04-04 14:51:18 +00:00
2014-04-04 14:51:18 +00:00
2014-01-05 20:27:12 +00:00
2015-01-04 21:00:53 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2015-01-03 18:02:45 +00:00
2014-01-05 20:27:12 +00:00