Use more clear condition in unclonable test.

This commit is contained in:
John-David Dalton
2016-11-07 08:35:52 -08:00
parent 5aaf7e40ae
commit 2e4c997dba

View File

@@ -3090,7 +3090,7 @@
if (value) {
var object = { 'a': value, 'b': { 'c': value } },
actual = func(object),
expected = (typeof value == 'function' && !!value.c) ? { 'c': Foo.c } : {};
expected = value === Foo ? { 'c': Foo.c } : {};
assert.deepEqual(actual, object);
assert.notStrictEqual(actual, object);