Skip to content

Commit c08995e

Browse files
danielroetargos
authored andcommitted
doc: indicate that name is no longer an optional argument
PR-URL: #47102 Reviewed-By: Debadree Chatterjee <debadree333@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Harshitha K P <harshitha014@gmail.com>
1 parent 2fd0f79 commit c08995e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/perf_hooks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,15 +214,15 @@ Returns a list of `PerformanceEntry` objects in chronological order
214214
with respect to `performanceEntry.startTime` whose `performanceEntry.entryType`
215215
is equal to `type`.
216216

217-
### `performance.mark([name[, options]])`
217+
### `performance.mark(name[, options])`
218218

219219
<!-- YAML
220220
added: v8.5.0
221221
changes:
222222
- version: v19.0.0
223223
pr-url: https://github.com/nodejs/node/pull/44483
224224
description: This method must be called with the `performance` object as
225-
the receiver.
225+
the receiver. The name argument is no longer optional.
226226
- version: v16.0.0
227227
pr-url: https://github.com/nodejs/node/pull/37136
228228
description: Updated to conform to the User Timing Level 3 specification.

0 commit comments

Comments
 (0)