Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /xhr/abort-with-error.any.html - WPT Dashboard Interop Dashboard
- /xhr/abort-with-error.any.worker.html - WPT Dashboard Interop Dashboard
// META: title=XMLHttpRequest: abort() still works when error thrown internally
"use strict";
const test_runner = async_test();
test_runner.step(() => {
const client = new XMLHttpRequest();
client.onabort = test_runner.step_func(() => {
test_runner.done();
});
client.send(null);
client.abort();
});