blob: 3d462710354590335948fa37bcc61cf91b9ebb48 [file] [log] [blame]
function foo() {
return {
get: function () { },
set: Object,
};
}
var exception;
try {
Object.defineProperties({}, {
2: foo(),
0: foo(),
1: foo(),
' ': foo(),
9: foo(),
B: 'B',
});
} catch (e) {
exception = e;
}
if (exception != "TypeError: Property description must be an object.")
throw "FAILED";