Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2fecff8

Browse files
committed
Rename exported key variable in crypto.subtle.wrapKey
To avoid shadowing the existing `key` variable.
1 parent 7286694 commit 2fecff8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/Overview.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2634,7 +2634,7 @@ <h4>The wrapKey method</h4>
26342634
</li>
26352635
<li>
26362636
<p>
2637-
Let |key| be the result of performing the export key operation specified by
2637+
Let |exportedKey| be the result of performing the export key operation specified by
26382638
the {{CryptoKey/[[algorithm]]}} internal slot of
26392639
|key| using |key| and |format|.
26402640
</p>
@@ -2646,7 +2646,7 @@ <h4>The wrapKey method</h4>
26462646
{{KeyFormat/"pkcs8"}}, or {{KeyFormat/"spki"}}:
26472647
</dt>
26482648
<dd>
2649-
Let |bytes| be |key|.
2649+
Let |bytes| be |exportedKey|.
26502650
</dd>
26512651
<dt>
26522652
If |format| is equal to the string {{KeyFormat/"jwk"}}:
@@ -2655,7 +2655,7 @@ <h4>The wrapKey method</h4>
26552655
<ol>
26562656
<li>
26572657
<p>
2658-
Let |json| be the result of representing |key| as a
2658+
Let |json| be the result of representing |exportedKey| as a
26592659
UTF-16 string conforming to the JSON grammar; for example, by executing
26602660
the `JSON.stringify` algorithm specified in
26612661
[[ECMA-262]] in the context of a new global object.

0 commit comments

Comments
 (0)