Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[weex]TypeError: CreateListFromArrayLike called on non-object #9124
Steps to reproduce
What is expected?
If textStyle is set to 'red', the data.class type is String, so the following code runs incorrectly.
What is actually happening?
This bug occurs in the platform "weex". In the function "src/platforms/weex/runtime/modules/class.js/updateClass", the following two lines of code:
Because the types of "oldData.class" and "data.class" are strings, not "Array" required by "apply".
The code you point out had been changed to this https://github.com/vuejs/vue/pull/7930/files#diff-c4874f4bae144c328950ba14ed7601abR35 . It will not throw errors when the type of