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

Ah, ok now I understand. I've copy pasted the results from the shells below, so it's easier for someone else to follow even without having the corresponding shell at hand. It's still unclear for me what is actually the most useful result for an user (except for the current rhino behaviour which is clearly not useful).

V8:

> d8> var a = Object.create(null)
> d8> a
>
> d8>

SM:

> js> var a = Object.create(null)
> js> a
> null
> js>

Rhino:

> js> var a = Object.create(null)
> js> a
> js: uncaught JavaScript runtime exception: TypeError: Cannot find default value for object.
>
> js>