Index: src/d8.js |
diff --git a/src/d8.js b/src/d8.js |
index 1ff0ce8980dda2ed8843364eac299931a9a3dfec..df1046133fbff449b29d40aa482b691ecff936fa 100644 |
--- a/src/d8.js |
+++ b/src/d8.js |
@@ -2214,7 +2214,8 @@ function Stringify(x, depth) { |
return x.toString(); |
case "string": |
return "\"" + x.toString() + "\""; |
- // TODO(rossberg): add symbol case |
+ case "symbol": |
+ return "Symbol(" + (x.name ? Stringify(x.name, depth) : "") + ")" |
case "object": |
if (x === null) return "null"; |
if (x.constructor && x.constructor.name === "Array") { |