mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
doc: fix entryTypes type and missing link
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
1 parent
8c480f9d8c
commit
bdfed1ad25
1 file changed
+2
-1
@@ -202,7 +202,7 @@ const obs = new PerformanceObserver((list) => {
|
||||
obs.disconnect();
|
||||
performance.clearFunctions();
|
||||
});
|
||||
obs.observe({ entryTypes: 'function' });
|
||||
obs.observe({ entryTypes: ['function'] });
|
||||
|
||||
// A performance timeline entry will be created
|
||||
wrapped();
|
||||
@@ -655,4 +655,5 @@ require('some-module');
|
||||
```
|
||||
|
||||
[`timeOrigin`]: https://w3c.github.io/hr-time/#dom-performance-timeorigin
|
||||
[Async Hooks]: async_hooks.html
|
||||
[W3C Performance Timeline]: https://w3c.github.io/performance-timeline/
|
||||
Reference in new issue
Block a user