fix: Fix checking for patchTarget in initAdoptedStyleSheetObserver#1327
fix: Fix checking for patchTarget in initAdoptedStyleSheetObserver#1327YunFeng0817 merged 3 commits intorrweb-io:masterfrom
patchTarget in initAdoptedStyleSheetObserver#1327Conversation
Calling `Object.getOwnPropertyDescriptor(undefined, 'xx')` actually errors out, so let's guard there.
🦋 Changeset detectedLatest commit: 3f6e65e The changes in this PR will be included in the next version bump. This PR includes changesets to release 8 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Hmm, when I run |
|
Hmm not sure if the test failure is really related to this PR? 🤔 can't see how this should lead to failing tests 😅 |
|
@mydea This pull request is ready to go once you add the change set log |
|
I've re-run the tests just now Could you describe what was triggering the error? Presence of a 3rd party library? Or a particular browser version? Can you click on the "Click here if you're a maintainer who wants to add a changeset to this PR" link? Maybe you don't have permissions for that? |
Ah, that button worked! (Side note, is
We've had some users come up that they got errors captured from that line with exactly the error you'd expect if |
Calling
Object.getOwnPropertyDescriptor(undefined, 'xx')actually errors out, so let's guard there. The types for this are bad, because it takesanybut actually fails on nullish objects 😬