Fix object initializers for get and set properties. (#3164)

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
Zoltan Herczeg
2019-09-27 10:28:53 +02:00
committed by Dániel Bátyai
parent 4eae760180
commit 0121b2bbcf
3 changed files with 51 additions and 5 deletions
+7
View File
@@ -62,4 +62,11 @@ default:
({ true: true });
({ 13: 13 });
({ "x": "x" });
var get = 8;
var set = 12;
var o = ({ get, set });
assert(o.get == 8);
assert(o.set == 12);
}