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

Thanks for the response and I appreciate you pointing out the flaws in my solution. I agree the fix is faulty in that `Object.create(null) + ""` should throw a TypeError and now does not. And it is perhaps the case that a call to `print(Object.create(null))` should also throw a TypeError, but I'm not sure this is consistent across all platforms. Despite this, I believe the original intent of my fix is still valid. If you are in the Rhino repl and call `var a = Object.create(null)` and then make a subsequent call to the variable, `a`, then it should not throw a TypeError. The repl should indicate the variable is an Object.