1
0
Fork 0

Corrected test broken by Node.js v0.10.27

Specifically, aae51ecf, which introduces deepEqual changes for comparing
argument objects---specifically, this change:

```c
  if ((aIsArgs && !bIsArgs) || (!aIsArgs && bIsArgs))
    return false;
```

Since I was comparing an array with an arguments object, deepEqual failed.
While such an implementation may confuse users---since argument objects are
generally treated like arrays---the distinction is important and I do agree
with the change.
textend
Mike Gerwitz 2014-08-06 23:55:34 -04:00
parent bbfac76c34
commit cef45cd097
No known key found for this signature in database
GPG Key ID: F22BB8158EE30EAB
1 changed files with 3 additions and 1 deletions

View File

@ -78,7 +78,9 @@ require( 'common' ).testCase(
var stubProxyFactory = this.require( 'MethodWrapperFactory' )(
function()
{
_self.proxyFactoryCall = arguments;
_self.proxyFactoryCall =
Array.prototype.slice.call( arguments );
return _self.proxyReturnValue;
}
);