From 5adce10f5c8e8cde58e5e1c683484b2e86c0d430 Mon Sep 17 00:00:00 2001 From: "JiaLi.Passion" Date: Thu, 12 Jan 2017 10:29:28 +0900 Subject: [PATCH] fix typo in comment and reformat README.md --- README.md | 7 ++++--- lib/zone.ts | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ae466dd10..3d121a8cb 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,10 @@ Implements _Zones_ for JavaScript, inspired by [Dart](https://www.dartlang.org/a > If you're using zone.js via unpkg please provide a query param `?main=browser` `https://unpkg.com/zone.js?main=browser` > If you're using the following library, make sure you import them first -> 1. 'newrelic' as it patches global.Promise before zone,js does -> 2. 'async-listener' as it patches global.setTimeout, global.setInterval before zone,js does -> 3. 'continuation-local-storage' as it uses async-listener + +> * 'newrelic' as it patches global.Promise before zone,js does +> * 'async-listener' as it patches global.setTimeout, global.setInterval before zone,js does +> * 'continuation-local-storage' as it uses async-listener # NEW Zone.js POST-v0.6.0 diff --git a/lib/zone.ts b/lib/zone.ts index 522b56fd3..d4081c638 100644 --- a/lib/zone.ts +++ b/lib/zone.ts @@ -1460,7 +1460,7 @@ const Zone: ZoneType = (function(global: any) { if (structuredStackTrace) { for (let i = 0; i < structuredStackTrace.length; i++) { const st = structuredStackTrace[i]; - // remove the first function which name is value + // remove the first function which name is zoneCaptureStackTrace if (st.getFunctionName() === 'zoneCaptureStackTrace') { structuredStackTrace.splice(i, 1); break;