Fix super property assignment for namedaccessor properties (#3654)

Tha patch also updates the [[Put]] internal method with the new steps from the ES6 standard.

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
Robert Fancsik
2020-04-09 17:08:08 +02:00
committed by GitHub
parent 901e57c7d0
commit 60db840cf4
9 changed files with 306 additions and 16 deletions
+3 -2
View File
@@ -43,7 +43,7 @@ assert(monster.foo === "foo");
var target = { foo: "foo"};
var handler = {
set: function(obj, prop, value) {
obj[prop] = "";
obj[prop] = "";
}
};
var proxy = new Proxy(target, handler);
@@ -58,6 +58,7 @@ var handler = {};
var proxy = new Proxy(target, handler);
// test when property does not exist on target
/* TODO: Enable these tests when Proxy.[[GetOwnProperty]] has been implemented
for (var p of properties) {
proxy.p = 42;
assert(target.p === 42);
@@ -73,7 +74,7 @@ for (var p of properties) {
proxy.p = 42;
assert(target.p === 42);
}
*/
// test when target is a proxy
var target = {};
var handler = {