Claude Pache (2014-08-26T16:05:58.000Z)
Le 26 août 2014 à 17:39, Jeff Walden <jwalden+es at mit.edu> a écrit :

> On 08/12/2014 11:07 PM, Allen Wirfs-Brock wrote:
> 
> With this change, as far as I can tell there's no concise operation directly corresponding to the ToString abstract operation.  The best that seems possible is some horribly indirect operation like (v) => Error.prototype.toString.call({ name: v, message: "" }).  That seems undesirable to me.  I'm not convinced that having String deviate from ToString is a good thing.
> 
> Jeff

Personally, I use the following expression in order to coerce a variable to a string:

	var obj = this + ''

and its in-place variant:

	x += ''

I think it'll continue to work in ES6.

—Claude
domenic at domenicdenicola.com (2014-09-08T23:24:18.938Z)
Personally, I use the following expression in order to coerce a variable to a string:

```js
var obj = this + ''
```

and its in-place variant:

```js
x += ''
```

I think it'll continue to work in ES6.