summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_6/Object
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-19 16:08:36 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-19 16:08:36 +0100
commiteb94521052069487322ab45aba9df6e29fc2ce8c (patch)
treef55dcd07c5e8ed7eef7372e533f49566ec413545 /js/src/tests/ecma_6/Object
parente3f1d0d10638e46e3a22cf8363c03922200cb158 (diff)
downloadUXP-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/tests/ecma_6/Object')
-rw-r--r--js/src/tests/ecma_6/Object/accessor-name.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/js/src/tests/ecma_6/Object/accessor-name.js b/js/src/tests/ecma_6/Object/accessor-name.js
index 1b5268e07..f238a2aef 100644
--- a/js/src/tests/ecma_6/Object/accessor-name.js
+++ b/js/src/tests/ecma_6/Object/accessor-name.js
@@ -27,10 +27,9 @@ o = {get case() { }, set case(v) {}}
assertEq(name(o, "case", true), "get case");
assertEq(name(o, "case", false), "set case");
-// Congratulations on implementing these!
-assertEq(name({get ["a"]() {}}, "a", true), "");
-assertEq(name({get [123]() {}}, "123", true), "");
-assertEq(name({set ["a"](v) {}}, "a", false), "");
-assertEq(name({set [123](v) {}}, "123", false), "");
+assertEq(name({get ["a"]() {}}, "a", true), "get a");
+assertEq(name({get [123]() {}}, "123", true), "get 123");
+assertEq(name({set ["a"](v) {}}, "a", false), "set a");
+assertEq(name({set [123](v) {}}, "123", false), "set 123");
reportCompare(true, true);