mozilla/rhino — pull request #36 by anba (2012-02-28 20:32:47+00:00)
Title: Test262 - chapter11

One single commit to resolve test case failures when running test262-chapter11 tests (only covered non-strict tests!). If you need smaller commits to ease reviewing, let me know!

-- André

Scriptable:
- hasInstance(): change argument from Scriptable to Object to comply with specification, which defines [[HasInstance]] as SpecOp(any) -> Boolean
- this is a public API change!
- update the following classes to conform to the new interface:
-- Matrix, BaseFunction, BoundFunction, Delegator, NativeIterator, NativeJavaArray, NativeJavaClass, NativeJavaObject, NativeWith, XMLCtor, XMLObjectImpl

ScriptableObject:
- default implementation of hasInstance() now throws a 'TypeError' to conform to the spec

ScriptRuntime:
- move primitive check from instanceOf() to jsDelegatesTo()
- add updated version of the "Abstract Relational Comparison Algorithm" with flags to control evaluation order
- deprecate old cmp_LT() and cmp_LE() methods

Interpreter:
- ensure proper left-to-right evaluation order for SUB, MUL, DIV, MOD
- ensure proper evaluation order for GE, LE, GT, LT

Parser:
- track property-type in addition to property-name to detect duplicate properties (code adapted from SpiderMonkey parser)
- always warn for duplicate getter/setter independent of strict-mode (SpiderMonkey behaviour)
- add check for parameter count in case of getter/setter functions