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

Upgrade android jsi headers to 0.71-stable #166

Merged
merged 4 commits into from
Jan 4, 2023

Conversation

rasaha91
Copy link
Contributor

@rasaha91 rasaha91 commented Jan 4, 2023

null

Microsoft Reviewers: Open in CodeFlow

@rasaha91 rasaha91 requested a review from a team as a code owner January 4, 2023 04:45
}

std::shared_ptr<jsi::NativeState> V8Runtime::getNativeState(const jsi::Object& obj) {
std::shared_ptr<jsi::NativeState>* holder = static_cast<std::shared_ptr<jsi::NativeState>*>(objectRef(obj)->GetAlignedPointerFromInternalField(0));
Copy link
Contributor

Choose a reason for hiding this comment

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

GetAlignedPointerFromInternalField(0

Is this guaranteed to return 0/NULL if native state is not set ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

https://v8docs.nodesource.com/node-0.12/db/d85/classv8_1_1_object.html#a580ea84afb26c005d6762eeb9e3c308f sounds like if it isn't set, it is undefined behavior. I don't know how we would know if it was set.

Copy link
Contributor Author

@rasaha91 rasaha91 Jan 4, 2023

Choose a reason for hiding this comment

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

we will definitely need to revisit the 0.71 implementation... for now I'm just getting it compiling to unblock the rn bump.

Copy link
Contributor

@mganandraj mganandraj left a comment

Choose a reason for hiding this comment

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

:shipit:

@rasaha91 rasaha91 merged commit af1cf36 into microsoft:master Jan 4, 2023
@rasaha91 rasaha91 deleted the upgrade-0.71 branch January 4, 2023 21:27
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