Skip to content

Commit e9d4a63

Browse files
authored
Merge pull request #57 from youennf/reject-setEncryptionKey
Reject setEncryptionKey promise in case of error
2 parents aed7d93 + 28d57a9 commit e9d4a63

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.bs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ The <dfn method for="SFrameTransform">setEncryptionKey(|key|, |keyID|)</dfn> met
267267
1. Let |promise| be [=a new promise=].
268268
2. [=In parallel=], run the following steps:
269269
1. Set |key| with its optional |keyID| as key material to use for the SFrame transform algorithm, as defined by the <a href="https://datatracker.ietf.org/doc/draft-omara-sframe/">SFrame specification</a>.
270-
2. [=Resolve=] |promise| with undefined.
270+
2. If setting the key material fails, [=Reject=] |promise| with an {{InvalidModificationError}} error and abort these steps.
271+
3. [=Resolve=] |promise| with undefined.
271272
3. Return |promise|.
272273

273274

0 commit comments

Comments
 (0)