Skip to content

Commit 0088f03

Browse files
bug: [fix] misnamed variable from code migration (reference error)
1 parent a736156 commit 0088f03

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

lib/eql.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,8 @@ function objectEqual(a, b, m) {
220220
var i;
221221
if (m) {
222222
for (i = 0; i < m.length; i++) {
223-
if ((memos[i][0] === a && memos[i][1] === b)
224-
|| (memos[i][0] === b && memos[i][1] === a)) {
223+
if ((m[i][0] === a && m[i][1] === b)
224+
|| (m[i][0] === b && m[i][1] === a)) {
225225
return true;
226226
}
227227
}

test/eql.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ tests.push([ 'eql([ 3, 2, 1 ], [ 1, 2, 3 ])', [ 3, 2, 1 ], [ 1, 2, 3 ], true ]);
5959

6060
tests.push([ 'eql({ a: 1, b: 2, c: 3}, { a: 1, b: 2, c: 3 })', { a: 1, b: 2, c: 3 }, { a: 1, b: 2, c: 3 } ]);
6161
tests.push([ 'eql({ foo: "bar" }, { foo: "baz" })', { foo: 'bar' }, { foo: 'baz' }, true ]);
62+
tests.push([ 'eql({ foo: { bar: "foo" }}, { foo: { bar: "baz" }})', { foo: { bar: 'foo' }}, { foo: { bar: 'baz' }}, true ]);
6263

6364
/*!
6465
* Test setup

0 commit comments

Comments
 (0)