Skip to content

Commit

Permalink
Rename exported key variable in crypto.subtle.wrapKey
Browse files Browse the repository at this point in the history
To avoid shadowing the existing `key` variable.
  • Loading branch information
twiss committed Dec 30, 2024
1 parent 7286694 commit 2fecff8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/Overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -2634,7 +2634,7 @@ <h4>The wrapKey method</h4>
</li>
<li>
<p>
Let |key| be the result of performing the export key operation specified by
Let |exportedKey| be the result of performing the export key operation specified by
the {{CryptoKey/[[algorithm]]}} internal slot of
|key| using |key| and |format|.
</p>
Expand All @@ -2646,7 +2646,7 @@ <h4>The wrapKey method</h4>
{{KeyFormat/"pkcs8"}}, or {{KeyFormat/"spki"}}:
</dt>
<dd>
Let |bytes| be |key|.
Let |bytes| be |exportedKey|.
</dd>
<dt>
If |format| is equal to the string {{KeyFormat/"jwk"}}:
Expand All @@ -2655,7 +2655,7 @@ <h4>The wrapKey method</h4>
<ol>
<li>
<p>
Let |json| be the result of representing |key| as a
Let |json| be the result of representing |exportedKey| as a
UTF-16 string conforming to the JSON grammar; for example, by executing
the `JSON.stringify` algorithm specified in
[[ECMA-262]] in the context of a new global object.
Expand Down

0 comments on commit 2fecff8

Please sign in to comment.