blob: 343bbaebb1d374ff6368d097d30713e880ab90be [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<script>
description('Check that XHR prototype allows defineProperty for built-in attributes.');
function a() {
this.overrideMimeType("text/plain; charset=x-user-defined");
};
var d = XMLHttpRequest.prototype;
Object.defineProperty(d, "responseType", {
set: a
});
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>