New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xhr#fetchJson now returns Response #9574
Xhr#fetchJson now returns Response #9574
Conversation
}); | ||
return xhr.fetchJson('http://localhost:31862/get?k=v1') | ||
.then(res => res.json()) | ||
.then(res => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: consider renaming this arg since it isn't a response, it's the result of the json()
call
json() { | ||
return Promise.resolve({different}); | ||
}, | ||
});.once(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks unintentional
json() { | ||
return Promise.resolve({}); | ||
}, | ||
});.once(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto (This looks unintentional)
@@ -79,6 +79,7 @@ export class AmpAutoAds extends AMP.BaseElement { | |||
}; | |||
return xhrFor(this.win) | |||
.fetchJson(configUrl, xhrInit) | |||
.then(res => res.json()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unintentional semicolon?
7841492
to
e0da2de
Compare
26eb0b4
to
7fc7e42
Compare
7fc7e42
to
c927b76
Compare
f3f883f
to
e458067
Compare
caeada0
to
042f8c6
Compare
Ping @cvializ. |
d7b156a
to
3e5cdaa
Compare
Partial for #9448.