Skip to content

Commit

Permalink
Set [[extractable]] and [[usages]] in the deriveKey method (#384)
Browse files Browse the repository at this point in the history
These parameters were accidentally not set on the returned object.
The new text matches that in `importKey`, and the expected behavior
in the web platform tests.
  • Loading branch information
panva authored Nov 15, 2024
1 parent d4ffcad commit b21575f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spec/Overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -1983,6 +1983,19 @@ <h4>The deriveKey method</h4>
|usages| is empty, then [= exception/throw =] a {{SyntaxError}}.
</p>
</li>
<li>
<p>
Set the {{CryptoKey/[[extractable]]}} internal
slot of |result| to |extractable|.
</p>
</li>
<li>
<p>
Set the {{CryptoKey/[[usages]]}} internal
slot of |result| to the [= normalized
value =] of |usages|.
</p>
</li>
<li>
<p>
Resolve |promise| with
Expand Down

0 comments on commit b21575f

Please sign in to comment.