summaryrefslogtreecommitdiff
path: root/doc/api/perf_hooks.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/api/perf_hooks.md')
-rw-r--r--doc/api/perf_hooks.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/api/perf_hooks.md b/doc/api/perf_hooks.md
index bccc99c18e..c6705e9009 100644
--- a/doc/api/perf_hooks.md
+++ b/doc/api/perf_hooks.md
@@ -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/