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 199cd33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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

0 comments on commit 199cd33

Please sign in to comment.