diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-19 16:08:36 +0100 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-19 16:08:36 +0100 |
commit | eb94521052069487322ab45aba9df6e29fc2ce8c (patch) | |
tree | f55dcd07c5e8ed7eef7372e533f49566ec413545 /js/src/jit-test/tests/self-test/assertDeepEq.js | |
parent | e3f1d0d10638e46e3a22cf8363c03922200cb158 (diff) | |
download | UXP-eb94521052069487322ab45aba9df6e29fc2ce8c.tar UXP-eb94521052069487322ab45aba9df6e29fc2ce8c.tar.gz UXP-eb94521052069487322ab45aba9df6e29fc2ce8c.tar.lz UXP-eb94521052069487322ab45aba9df6e29fc2ce8c.tar.xz UXP-eb94521052069487322ab45aba9df6e29fc2ce8c.zip |
Part 4: Fix existing tests
Issue #87
Diffstat (limited to 'js/src/jit-test/tests/self-test/assertDeepEq.js')
-rw-r--r-- | js/src/jit-test/tests/self-test/assertDeepEq.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/src/jit-test/tests/self-test/assertDeepEq.js b/js/src/jit-test/tests/self-test/assertDeepEq.js index b2a949abc..9c1b37e8e 100644 --- a/js/src/jit-test/tests/self-test/assertDeepEq.js +++ b/js/src/jit-test/tests/self-test/assertDeepEq.js @@ -77,7 +77,8 @@ assertDeepEq(q, p); assertNotDeepEq(() => 1, () => 2); assertNotDeepEq((...x) => 1, x => 1); assertNotDeepEq(function f(){}, function g(){}); -var f1 = function () {}, f2 = function () {}; +// Avoid setting name property. +var [f1, f2] = [function () {}, function () {}]; assertDeepEq(f1, f1); assertDeepEq(f1, f2); // same text, close enough f1.prop = 1; |