Update www warning shim (#13244)

This commit is contained in:
Dan Abramov
2018-07-20 16:50:43 +01:00
committed by GitHub
parent 3d3506d37d
commit 5776fa3fcf
3 changed files with 3 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ if (__DEV__) {
lowPriorityWarning = function(condition, format, ...args) {
if (format === undefined) {
throw new Error(
'`warningWithoutStack(condition, format, ...args)` requires a warning ' +
'`lowPriorityWarning(condition, format, ...args)` requires a warning ' +
'message argument',
);
}

View File

@@ -150,12 +150,12 @@ const forks = Object.freeze({
},
// This logic is forked on www to blacklist warnings.
'shared/warning': (bundleType, entry) => {
'shared/warningWithoutStack': (bundleType, entry) => {
switch (bundleType) {
case FB_WWW_DEV:
case FB_WWW_PROD:
case FB_WWW_PROFILING:
return 'shared/forks/warning.www.js';
return 'shared/forks/warningWithoutStack.www.js';
default:
return null;
}