(async () => {
const response = await fetch('data:,Internal%20Server%20Error');
console.log('got response');
try {
await response.json();
} catch(e) {
console.log('error:', e.message);
}
})();
Created
February 12, 2021 21:06
-
-
Save akrisiun/4d5eff1b9fa5b991b71b052b78e2d57f to your computer and use it in GitHub Desktop.
async fetch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment