From 383a4943ea958d110efd2e2577bac5dca9ca7708 Mon Sep 17 00:00:00 2001 From: Mani Maghsoudlou Date: Thu, 14 Sep 2017 01:36:49 -0700 Subject: [PATCH 1/2] doc: fix entryTypes type and missing link in perf_hooks.md --- doc/api/perf_hooks.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/api/perf_hooks.md b/doc/api/perf_hooks.md index bccc99c18e8447..31bdd99e1a5c77 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(); @@ -656,3 +656,4 @@ require('some-module'); [`timeOrigin`]: https://w3c.github.io/hr-time/#dom-performance-timeorigin [W3C Performance Timeline]: https://w3c.github.io/performance-timeline/ +[Async Hooks]: async_hooks.html From 504963f91bb564b4b7b98a8feff1565375055354 Mon Sep 17 00:00:00 2001 From: Mani Maghsoudlou Date: Thu, 14 Sep 2017 19:05:44 -0700 Subject: [PATCH 2/2] doc: sort links alphabetically in perf_hooks.md --- doc/api/perf_hooks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/perf_hooks.md b/doc/api/perf_hooks.md index 31bdd99e1a5c77..c6705e90096d31 100644 --- a/doc/api/perf_hooks.md +++ b/doc/api/perf_hooks.md @@ -655,5 +655,5 @@ require('some-module'); ``` [`timeOrigin`]: https://w3c.github.io/hr-time/#dom-performance-timeorigin -[W3C Performance Timeline]: https://w3c.github.io/performance-timeline/ [Async Hooks]: async_hooks.html +[W3C Performance Timeline]: https://w3c.github.io/performance-timeline/