// |reftest| skip-if(!this.hasOwnProperty("Tuple")) var desc = Object.getOwnPropertyDescriptor(Tuple.prototype.toSorted, "length"); assertEq(desc.value, 1); assertEq(desc.writable, false); assertEq(desc.enumerable, false); assertEq(desc.configurable, true); desc = Object.getOwnPropertyDescriptor(Tuple.prototype.toSorted, "name"); assertEq(desc.value, "toSorted"); assertEq(desc.writable, false); assertEq(desc.enumerable, false); assertEq(desc.configurable, true); desc = Object.getOwnPropertyDescriptor(Tuple.prototype, "toSorted"); assertEq(desc.writable, true); assertEq(desc.enumerable, false); assertEq(desc.configurable, true); assertEq(isConstructor(Tuple.prototype.toSorted), false); assertThrowsInstanceOf(() => { let t = #[1]; new t.toSorted(); }, TypeError, '`let t = #[1]; new t.toSorted()` throws TypeError'); reportCompare(0, 0);