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 @@

The wrapKey method

26342634
26352635
  • 26362636

    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

    @@ -2646,7 +2646,7 @@

    The wrapKey method

    26462646
    {{KeyFormat/"pkcs8"}}, or {{KeyFormat/"spki"}}:
    26472647
    26482648
    2649-
    Let |bytes| be |key|.
    2649+
    Let |bytes| be |exportedKey|.
    26502650
    26512651
    26522652
    If |format| is equal to the string {{KeyFormat/"jwk"}}:
    @@ -2655,7 +2655,7 @@

    The wrapKey method

    26552655
      26562656
    1. 26572657

      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)