- From: Kenneth Rohde Christiansen <notifications@github.com>
- Date: Mon, 24 Oct 2016 04:22:53 -0700
- To: w3c/manifest <manifest@noreply.github.com>
Received on Monday, 24 October 2016 11:23:25 UTC
kenchris commented on this pull request.
> + }
+ super(typeArg, Object.assign({ cancelable: true }, eventInit));
+
+ if (eventInit && typeof eventInit.userChoice !== "undefined" && !AppBannerPromptOutcome.has(String(eventInit.userChoice))) {
+ const msg = `The provided value '${eventInit.userChoice}' is not a valid` +
+ "enum value of type AppBannerPromptOutcome.";
+ throw new TypeError(msg);
+ }
+ // End WebIDL guard.
+ const internal = {
+ didPrompt: false,
+ userChoice: null,
+ userChoiceResolver: null, // Implicit in spec
+ };
+
+ internal.userChoice = new Promise((resolve) => {
no need for () around resolve
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/manifest/pull/506#pullrequestreview-5428751
Received on Monday, 24 October 2016 11:23:25 UTC