Commit 4bc6f79
doc: fix CCM cipher example in MJS
The original example used 'return' to terminate the current control
flow, which is valid in CommonJS. When the example was copied and
modified to use MJS syntax, the 'return' statement was left in but is
not allowed.
Refs: #37594
PR-URL: #39949
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>1 parent b102e07 commit 4bc6f79
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5283 | 5283 | | |
5284 | 5284 | | |
5285 | 5285 | | |
5286 | | - | |
5287 | | - | |
| 5286 | + | |
5288 | 5287 | | |
5289 | 5288 | | |
5290 | 5289 | | |
| |||
5328 | 5327 | | |
5329 | 5328 | | |
5330 | 5329 | | |
5331 | | - | |
5332 | | - | |
| 5330 | + | |
5333 | 5331 | | |
5334 | 5332 | | |
5335 | 5333 | | |
| |||
0 commit comments