Skip to content

Commit 5776fa3

Browse files
authored
Update www warning shim (facebook#13244)
1 parent 3d3506d commit 5776fa3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
File renamed without changes.

packages/shared/lowPriorityWarning.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ if (__DEV__) {
3939
lowPriorityWarning = function(condition, format, ...args) {
4040
if (format === undefined) {
4141
throw new Error(
42-
'`warningWithoutStack(condition, format, ...args)` requires a warning ' +
42+
'`lowPriorityWarning(condition, format, ...args)` requires a warning ' +
4343
'message argument',
4444
);
4545
}

scripts/rollup/forks.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,12 @@ const forks = Object.freeze({
150150
},
151151

152152
// This logic is forked on www to blacklist warnings.
153-
'shared/warning': (bundleType, entry) => {
153+
'shared/warningWithoutStack': (bundleType, entry) => {
154154
switch (bundleType) {
155155
case FB_WWW_DEV:
156156
case FB_WWW_PROD:
157157
case FB_WWW_PROFILING:
158-
return 'shared/forks/warning.www.js';
158+
return 'shared/forks/warningWithoutStack.www.js';
159159
default:
160160
return null;
161161
}

0 commit comments

Comments
 (0)