From 5714c450f7384c718ee77d7954768da399ad1a81 Mon Sep 17 00:00:00 2001 From: Peter van der Zee Date: Thu, 5 Apr 2018 06:14:57 -0700 Subject: [PATCH] Rename the `accept` local function to `metroAccept` Reviewed By: rubennorte Differential Revision: D7487829 fbshipit-source-id: f9055d7c42542124cf8db2652638973f6dfef63f --- packages/metro/src/lib/polyfills/require.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/metro/src/lib/polyfills/require.js b/packages/metro/src/lib/polyfills/require.js index 0e0826df..4e115d96 100644 --- a/packages/metro/src/lib/polyfills/require.js +++ b/packages/metro/src/lib/polyfills/require.js @@ -276,7 +276,7 @@ if (__DEV__) { return hot; }; - const acceptAll = function( + const metroAcceptAll = function( dependentModules, inverseDependencies, patchedModules, @@ -287,7 +287,7 @@ if (__DEV__) { const notAccepted = dependentModules.filter( module => - !accept( + !metroAccept( module, /*factory*/ undefined, /*dependencyMap*/ undefined, @@ -309,7 +309,7 @@ if (__DEV__) { return parents.length == 0; }; - const accept = function( + const metroAccept = function( id: ModuleID, factory?: FactoryFn, dependencyMap?: DependencyMap, @@ -378,12 +378,12 @@ if (__DEV__) { } // accept parent modules recursively up until all siblings are accepted - return acceptAll( + return metroAcceptAll( inverseDependencies[id], inverseDependencies, patchedModules, ); }; - global.__accept = accept; + global.__accept = metroAccept; }