Skip to content

Commit

Permalink
chore(warning): Add "symbol" and "boolean" for "key" warning
Browse files Browse the repository at this point in the history
Booleans as keys are supported since vuejs#6127 and symbols since vuejs#7271.
The warning should reflect that.
  • Loading branch information
mpawelski committed Jun 4, 2020
1 parent 98b4d68 commit e814f71
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/vue-server-renderer/build.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -6862,7 +6862,7 @@ function _createElement (
{
warn(
'Avoid using non-primitive value as key, ' +
'use string/number value instead.',
'use string/number/symbol/boolean value instead.',
context
);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/weex-vue-framework/factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -3575,7 +3575,7 @@ function _createElement (
if (!('@binding' in data.key)) {
warn(
'Avoid using non-primitive value as key, ' +
'use string/number value instead.',
'use string/number/symbol/boolean value instead.',
context
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/vdom/create-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function _createElement (
if (!__WEEX__ || !('@binding' in data.key)) {
warn(
'Avoid using non-primitive value as key, ' +
'use string/number value instead.',
'use string/number/symbol/boolean value instead.',
context
)
}
Expand Down

0 comments on commit e814f71

Please sign in to comment.