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

Fix/store obj #1232

Merged
merged 4 commits into from
Sep 14, 2022
Merged

Fix/store obj #1232

merged 4 commits into from
Sep 14, 2022

Conversation

samijaber
Copy link
Contributor

What is it?

  • Bug

Description

Honestly not sure what I'm looking at, but looks like @manucorporat 's changes in https://github.com/BuilderIO/qwik/pull/1217/files#diff-c80d393c4d0acda1ba573e20ff62b3bc96a4169298f7d1af7898ccd8fb60638a stopped checking that the mutated obj is still a valid object before calling getProxyTarget. So now we sometime provide null to getProxyTarget, causing crashes.

}
}

if (isObject(obj)) {
Copy link
Contributor Author

@samijaber samijaber Sep 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to check the ojb after obj = obj.mut to make sure the value given to getProxyTarget is actually a valid object, and non-null

@manucorporat manucorporat enabled auto-merge (squash) September 14, 2022 08:22
@manucorporat manucorporat merged commit 44928c0 into QwikDev:main Sep 14, 2022
@samijaber samijaber deleted the fix/store-obj-id branch September 14, 2022 13:10
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.

2 participants