It fails only if value is `{ __proto__: null }` I think we should just test against it and print accordingly:

```js
result += "{ // " + (value && value.toString ? value : "{ __proto__: null } ") + "\n"