Skip to content

Commit bdfed1a

Browse files
manidloujasnell
authored andcommitted
doc: fix entryTypes type and missing link
PR-URL: #15406 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 8c480f9 commit bdfed1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/api/perf_hooks.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ const obs = new PerformanceObserver((list) => {
202202
obs.disconnect();
203203
performance.clearFunctions();
204204
});
205-
obs.observe({ entryTypes: 'function' });
205+
obs.observe({ entryTypes: ['function'] });
206206

207207
// A performance timeline entry will be created
208208
wrapped();
@@ -655,4 +655,5 @@ require('some-module');
655655
```
656656

657657
[`timeOrigin`]: https://w3c.github.io/hr-time/#dom-performance-timeorigin
658+
[Async Hooks]: async_hooks.html
658659
[W3C Performance Timeline]: https://w3c.github.io/performance-timeline/

0 commit comments

Comments
 (0)