Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src/state.js中的encode方法,使用for in语法枚举出了polyfill到Object.propertype上的方法 #39

Open
icyfanfan opened this issue May 2, 2017 · 0 comments

Comments

@icyfanfan
Copy link

背景:ie8中使用core.js polyfill了assign方法到Object.prototype上
使用manager.go时如果带上url参数(e.g. manager.go('error', { param: { t:'type'} })),state.js中encode方法142行的for in语法遍历到param的'assign'属性,该属性是个function,带到参数中会导致报错
建议:加上hasOwnProperty判断过滤

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant