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 <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Harshitha K P <[email protected]>
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

+2-2
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)