Join GitHub today
Cannot convert a Symbol value to a string #361
I was asked to translate this to english:
This error would be fixed by changing the following line:
var $iterator$ = Type.symbol(Symbol.iterator) ? Symbol.iterator.toString() : '_es6-shim iterator_'
Would that be a problem to merge?
No, that will not fix it. By the spec, stringifying a Symbol throws in all but two cases. The only ways to stringify a symbol safely is
The entire purpose of symbols is to be used as non-string object keys - so why would we want to stringify it?
This node 0.12 v8 bug is impossible to fix in JS-land, and is fixed in
It seems that