blob: 7af839477d70654440f92f51167d1eb28e85c303 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// Bug 1133294 - Object.getOwnPropertyDescriptor should never return an incomplete descriptor.
load(libdir + "asserts.js");
var p = new Proxy({}, {
getOwnPropertyDescriptor() { return {configurable: true}; }
});
var desc = Object.getOwnPropertyDescriptor(p, "x");
assertDeepEq(desc, {
value: undefined,
writable: false,
enumerable: false,
configurable: true
});
|