### Version 2.5.13 ### Reproduction link [https://jsfiddle.net/49gptnad/905/](https://jsfiddle.net/49gptnad/905/) ### Steps to reproduce Just run it and open the console in a debugger ### What is expected? that the target variable is type checked for being a string before trying to perform the `key in target` line, to prevent a big error message ### What is actually happening? a big error message comes up --- I'm going to have a look at a fix for it now so I'll post it if I figure it out <!-- generated by vue-issues. DO NOT REMOVE -->