Skip to content

Commit

Permalink
Use clearer wording
Browse files Browse the repository at this point in the history
Fixes #13604
  • Loading branch information
gaearon committed Sep 9, 2018
1 parent 7d1169b commit 8a8d973
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
4 changes: 3 additions & 1 deletion packages/react-dom/src/client/ReactDOMComponent.js
Expand Up @@ -302,7 +302,9 @@ function setInitialDOMProperties(
// Noop
} else if (propKey === AUTOFOCUS) {
// We polyfill it separately on the client during commit.
// We blacklist it here rather than in the property list because we emit it in SSR.
// We could have excluded it in the property list instead of
// adding a special case here, but then it wouldn't be emitted
// on server rendering (but we *do* want to emit it in SSR).
} else if (registrationNameModules.hasOwnProperty(propKey)) {
if (nextProp != null) {
if (__DEV__ && typeof nextProp !== 'function') {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-dom/src/events/BeforeInputEventPlugin.js
Expand Up @@ -314,7 +314,7 @@ function getNativeBeforeInputChars(topLevelType: TopLevelType, nativeEvent) {

// If it's a spacebar character, assume that we have already handled
// it at the keypress level and bail immediately. Android Chrome
// doesn't give us keycodes, so we need to blacklist it.
// doesn't give us keycodes, so we need to ignore it.
if (chars === SPACEBAR_CHAR && hasSpaceKeypress) {
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/jest/config.build.js
Expand Up @@ -32,7 +32,7 @@ packages.forEach(name => {
module.exports = Object.assign({}, baseConfig, {
// Redirect imports to the compiled bundles
moduleNameMapper,
// Don't run bundle tests on blacklisted -test.internal.* files
// Don't run bundle tests on -test.internal.* files
testPathIgnorePatterns: ['/node_modules/', '-test.internal.js$'],
// Exclude the build output from transforms
transformIgnorePatterns: ['/node_modules/', '<rootDir>/build/'],
Expand Down
6 changes: 3 additions & 3 deletions scripts/rollup/build.js
Expand Up @@ -250,9 +250,9 @@ function isProfilingBundleType(bundleType) {
}
}

function blacklistFBJS() {
function forbidFBJSImports() {
return {
name: 'blacklistFBJS',
name: 'forbidFBJSImports',
resolveId(importee, importer) {
if (/^fbjs\//.test(importee)) {
throw new Error(
Expand Down Expand Up @@ -304,7 +304,7 @@ function getPlugins(
// Shim any modules that need forking in this environment.
useForks(forks),
// Ensure we don't try to bundle any fbjs modules.
blacklistFBJS(),
forbidFBJSImports(),
// Use Node resolution mechanism.
resolve({
skip: externals,
Expand Down
4 changes: 2 additions & 2 deletions scripts/rollup/forks.js
Expand Up @@ -162,7 +162,7 @@ const forks = Object.freeze({
}
},

// This logic is forked on www to blacklist warnings.
// This logic is forked on www to ignore some warnings.
'shared/lowPriorityWarning': (bundleType, entry) => {
switch (bundleType) {
case FB_WWW_DEV:
Expand All @@ -174,7 +174,7 @@ const forks = Object.freeze({
}
},

// This logic is forked on www to blacklist warnings.
// This logic is forked on www to ignore some warnings.
'shared/warningWithoutStack': (bundleType, entry) => {
switch (bundleType) {
case FB_WWW_DEV:
Expand Down

0 comments on commit 8a8d973

Please sign in to comment.