diff options
author | Rich Trott <rtrott@gmail.com> | 2021-02-06 05:36:58 -0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2021-02-19 09:55:35 -0800 |
commit | b461a1b1259b0b12f6fdbc45851e8b0546ddde84 (patch) | |
tree | 213f4f09396a7c2b7a3127dac18af461525f3763 /doc/api/webcrypto.md | |
parent | 08a2383a5ea0db2723fb7bf3edce9898d716b158 (diff) | |
download | node-new-b461a1b1259b0b12f6fdbc45851e8b0546ddde84.tar.gz |
doc,lib: prepare for stricter multi-line array linting
We're about to turn on a requirement for dangling commas.
PR-URL: https://github.com/nodejs/node/pull/37088
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Diffstat (limited to 'doc/api/webcrypto.md')
-rw-r--r-- | doc/api/webcrypto.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/webcrypto.md b/doc/api/webcrypto.md index c360677df4..79bf1c75c5 100644 --- a/doc/api/webcrypto.md +++ b/doc/api/webcrypto.md @@ -187,7 +187,7 @@ const { subtle } = require('crypto').webcrypto; async function generateAndWrapHmacKey(format = 'jwk', hash = 'SHA-512') { const [ key, - wrappingKey + wrappingKey, ] = await Promise.all([ subtle.generateKey({ name: 'HMAC', hash @@ -195,7 +195,7 @@ async function generateAndWrapHmacKey(format = 'jwk', hash = 'SHA-512') { subtle.generateKey({ name: 'AES-KW', length: 256 - }, true, ['wrapKey', 'unwrapKey']) + }, true, ['wrapKey', 'unwrapKey']), ]); const wrappedKey = await subtle.wrapKey(format, key, wrappingKey, 'AES-KW'); |