Thanks, I've missed it.

Any plans to make ES5 features working only when the right JavaScript version is set on the Context?

Cheers,
Marc.

Cameron McCormack a écrit :
On 17/12/2009 3:14 AM, Marc Guillemot wrote:
due to changes in Rhino Head, toString() on an Arguments object now
returns "[object Arguments]" whereas it was correctly returning "[object
Object]" in earlier Rhino versions.

Is this changed due to ES5 support? I couldn't find anything in the spec
motivating it.

In the CreateArgumentsObject abstract operation in section 10.6, it states that the [[Class]] of the object is "Arguments" and that its [[Prototype]] is the Object prototype object, which means that Object.protoype.toString will return "[object Arguments]".
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to