21 lines
454 B
HTML
21 lines
454 B
HTML
<!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>
|