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
fix: Object.getOwnPropertySymbols called on non-object #10902
Conversation
@@ -399,7 +399,7 @@ helpers.objectSpread = helper("7.0.0-beta.0")` | |||
var source = (arguments[i] != null) ? arguments[i] : {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like we can add Object
to arguments[i]
and forget about Object(source)
later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you mean like this?
var source = (arguments[i] != null) ? Object(arguments[i]) : {};
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed 1366ed3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
This PR is related to #10683
TypeError: Object.getOwnPropertySymbols called on non-object
occurred in android default browser (android 4.x 5.x) when it uses the spread operator.Because this browser dose not support Object.getOwnPropertySymbols with non-object argument.