blob: 8c05147c5720e3f3382c31d4c69f28240c752213 [file] [log] [blame]
// Bug 1133085 - Test that descriptors are properly reconstituted
// when only .get or only .set is present.
load(libdir + "asserts.js");
var input, output;
var p = new Proxy({x: 0}, {
defineProperty(t, k, desc) { output = desc; print("ok"); return true; }
});
input = {get: function () {}};
Object.defineProperty(p, "x", input);
assertDeepEq(output, input);
input = {set: function () {}};
Object.defineProperty(p, "x", input);
assertDeepEq(output, input);