From 01f68ade3a826e60c35ea3a24e19953d5b3ed821 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Fri, 2 Apr 2021 09:18:36 -0400 Subject: [PATCH] Update packages/babel-traverse/src/path/family.ts Co-authored-by: Brian Ng --- packages/babel-traverse/src/path/family.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/babel-traverse/src/path/family.ts b/packages/babel-traverse/src/path/family.ts index 457e5cea4206..109d6f1cc3a1 100644 --- a/packages/babel-traverse/src/path/family.ts +++ b/packages/babel-traverse/src/path/family.ts @@ -90,7 +90,7 @@ function normalCompletionToBreak(completions: Completion[]) { * * @param {Completion[]} completions * @param {boolean} reachable Whether the break statement is reachable after - we mark the noraml completions _before_ the given break completions as the final + we mark the normal completions _before_ the given break completions as the final completions. For example, `{ 0 }; break;` is transformed to `{ return 0 }; break;`, the `break` here is unreachable and thus can be removed without consequences. We may in the future reserve them instead since