From 5a081a85720869a2cd33b2401a8522ac4c2d0be4 Mon Sep 17 00:00:00 2001 From: Amjad Masad Date: Thu, 10 Mar 2016 13:00:45 -0800 Subject: [PATCH] Update comment, reformat message --- packages/babel-traverse/src/scope/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/babel-traverse/src/scope/index.js b/packages/babel-traverse/src/scope/index.js index a6033f72ce..7d7abe4946 100644 --- a/packages/babel-traverse/src/scope/index.js +++ b/packages/babel-traverse/src/scope/index.js @@ -489,7 +489,7 @@ export default class Scope { // It's erroneous that we currently consider flow a binding, however, we can't // remove it because people might be depending on it. See warning section - // in `getBinding` + // in `warnOnFlowBinding`. if (local && local.path.isFlow()) local = null; parent.references[name] = true; @@ -848,8 +848,8 @@ export default class Scope { if (!this.crawling && this._warnOnFlowBinding && binding && binding.path.isFlow()) { console.warn(` You or one of the Babel plugins you are using are using Flow declarations as bindings. - Support for this will be removed in version 6.8. To find out the caller, grep for this message - and change it to a \`console.trace()\`. + Support for this will be removed in version 6.8. To find out the caller, grep for this + message and change it to a \`console.trace()\`. `); } return binding;