File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1131,10 +1131,10 @@ class SubtleCrypto {
1131
1131
* @param {number | null } length
1132
1132
* @returns {Promise<ArrayBuffer> }
1133
1133
*/
1134
- async deriveBits ( algorithm , baseKey , length ) {
1134
+ async deriveBits ( algorithm , baseKey , length = null ) {
1135
1135
webidl . assertBranded ( this , SubtleCryptoPrototype ) ;
1136
1136
const prefix = "Failed to execute 'deriveBits' on 'SubtleCrypto'" ;
1137
- webidl . requiredArguments ( arguments . length , 3 , prefix ) ;
1137
+ webidl . requiredArguments ( arguments . length , 2 , prefix ) ;
1138
1138
algorithm = webidl . converters . AlgorithmIdentifier (
1139
1139
algorithm ,
1140
1140
prefix ,
Original file line number Diff line number Diff line change 909
909
"historical.any.html": false,
910
910
"historical.any.worker.html": false,
911
911
"idlharness.https.any.html": [
912
- "Window interface: attribute crypto"
912
+ "Window interface: attribute crypto",
913
+ "SubtleCrypto interface: operation deriveBits(AlgorithmIdentifier, CryptoKey, unsigned long)"
913
914
],
914
915
"idlharness.https.any.worker.html": [
915
- "WorkerGlobalScope interface: attribute crypto"
916
+ "WorkerGlobalScope interface: attribute crypto",
917
+ "SubtleCrypto interface: operation deriveBits(AlgorithmIdentifier, CryptoKey, unsigned long)"
916
918
],
917
919
"import_export": {
918
920
"ec_importKey.https.any.html": [
You can’t perform that action at this time.
0 commit comments