travisennis/rhino — comment on commit 00a8caa54f33932d305ce9a066aae5d6790c5ee7
File:  line 0
By anba:

The change for ScriptableObject should not land because it screws up the [[DefaultValue]] calculation for the built-in Object type. For example `Object.create(null) + ""` should always throw a TypeError, but with the proposed patch, it'd just return the string "[object Object]". Btw, SpiderMonkey also throws a TypeError for `print(Object.create(null))`, whereas as V8's shell prints nothing. But then again V8's behaviour seems to occur for any kind of exception, e.g. `print({toString:function(){throw 2}})` also prints nothing....