performance.mark()
throws error 'The "name" argument must be specified'
#47097
Labels
doc
Issues and PRs related to the documentations.
perf_hooks
Issues and PRs related to the implementation of the Performance Timing API.
Version
19.7.0
Platform
Darwin midnight.local 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 11 02:06:26 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T8112 arm64
Subsystem
perf_hooks
What steps will reproduce the bug?
node -e "require('perf_hooks').performance.mark()"
How often does it reproduce? Is there a required condition?
This works fine in Node <19 but throws an error in Node 19.
What is the expected behavior? Why is that the expected behavior?
name
is marked as an optional parameter in the docs. I expect no error when callingmark()
without a name parameter.What do you see instead?
Additional information
No response
The text was updated successfully, but these errors were encountered: