Re: [whatwg/storage] Clarify storage infrastructure (#86)

@annevk commented on this pull request.



> +
+<hr>
+
+<p>To <dfn>create a storage bucket</dfn>, given a <a>storage type</a> <var>type</var>, run these
+steps:
+
+<ol>
+ <li><p>Let <var>bucket</var> be null.
+
+ <li><p>If <var>type</var> is "<code>more-durable</code>", then set <var>bucket</var> to a new
+ <a>more-durable storage bucket</a>.
+
+ <li><p>Otherwise, if <var>type</var> is "<code>session</code>", set <var>bucket</var> to a new
+ <a>session storage bucket</a>.
+
+ <li><p>Assert: <var>bucket</var> is a <a>storage bucket</a>.

This was intended for absolute clarity. If you want I could put the assert inside the otherwise branch and make that have substeps.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/storage/pull/86#discussion_r422018442

Received on Friday, 8 May 2020 08:33:18 UTC