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

[Expression] Enable setProperty function creating object handling null correctly #3771

Merged
merged 3 commits into from
Apr 20, 2020

Conversation

cosmicshuai
Copy link
Contributor

closes: #3768
In this PR,
setProperty({}, 'name', user.name).name will return null when user.name is null. It won't throws exception.
Also, create object with {} syntax,
{name: user.name}.name will have the same behavior as setProperty function.

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

Successfully merging this pull request may close these issues.

Expression createObject syntax throws at null
2 participants