Bug in Fetch-API

Issue #19850839 • Unassigned

Details

Author
Noobish N.
Created
Dec 6, 2018
Privacy
This issue is public.
Found in
  • Microsoft Edge
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Fetch doesn’t work with await.
If I await a fetch-promise in Edge, i get “Expected ';’”
This works on Firefox and Chrome, and also in IE 11 with fetch-polyfill and ES5-transpilation.

Tested on Edge/17.17134

var p = fetch(“index.html”);
var foo = await p;
// var data = await foo.json();
var data = await foo.text();
console.log(data);

also for
var foo = await fetch(“index.html”);
// var data = await foo.json();
var data = await foo.text();
console.log(data);

Attachments

0 attachments

    Comments and activity

    Nothing to see here! No one has commented on this issue yet.

    You need to sign in to your Microsoft account to add a comment.

    Sign in