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:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user