-
Notifications
You must be signed in to change notification settings - Fork 24.7k
Define JSI bridging function for ShadowNode::Shared #51675
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
Conversation
This pull request was exported from Phabricator. Differential Revision: D75597542 |
Summary: Changelog: [internal] This defines a new bridging method to convert ShadowNode::Shared from and to JS. This has some benefits over the existing `shadowNodeFromValue` and `valueFromShadowNode` functions: 1. It's more convenient, as we can just use `ShadowNode::Shared` in classes implementing the codegen, and the runtime will do the conversion automatically. 2. It's safer, as it checks for nullability and throws JS exceptions except of having segmentation faults down the line. Differential Revision: D75597542
Summary: Changelog: [internal] This defines a new bridging method to convert ShadowNode::Shared from and to JS. This has some benefits over the existing `shadowNodeFromValue` and `valueFromShadowNode` functions: 1. It's more convenient, as we can just use `ShadowNode::Shared` in classes implementing the codegen, and the runtime will do the conversion automatically. 2. It's safer, as it checks for nullability and throws JS exceptions except of having segmentation faults down the line. Differential Revision: D75597542
Summary: Changelog: [internal] This defines a new bridging method to convert ShadowNode::Shared from and to JS. This has some benefits over the existing `shadowNodeFromValue` and `valueFromShadowNode` functions: 1. It's more convenient, as we can just use `ShadowNode::Shared` in classes implementing the codegen, and the runtime will do the conversion automatically. 2. It's safer, as it checks for nullability and throws JS exceptions except of having segmentation faults down the line. Differential Revision: D75597542
c900d76
to
f65647d
Compare
Summary: Changelog: [internal] This defines a new bridging method to convert ShadowNode::Shared from and to JS. This has some benefits over the existing `shadowNodeFromValue` and `valueFromShadowNode` functions: 1. It's more convenient, as we can just use `ShadowNode::Shared` in classes implementing the codegen, and the runtime will do the conversion automatically. 2. It's safer, as it checks for nullability and throws JS exceptions except of having segmentation faults down the line. Differential Revision: D75597542
Summary: Changelog: [internal] This defines a new bridging method to convert ShadowNode::Shared from and to JS. This has some benefits over the existing `shadowNodeFromValue` and `valueFromShadowNode` functions: 1. It's more convenient, as we can just use `ShadowNode::Shared` in classes implementing the codegen, and the runtime will do the conversion automatically. 2. It's safer, as it checks for nullability and throws JS exceptions except of having segmentation faults down the line. Differential Revision: D75597542
This pull request was exported from Phabricator. Differential Revision: D75597542 |
Summary: Pull Request resolved: facebook#51675 Changelog: [internal] This defines a new bridging method to convert ShadowNode::Shared from and to JS. This has some benefits over the existing `shadowNodeFromValue` and `valueFromShadowNode` functions: 1. It's more convenient, as we can just use `ShadowNode::Shared` in classes implementing the codegen, and the runtime will do the conversion automatically. 2. It's safer, as it checks for nullability and throws JS exceptions except of having segmentation faults down the line. Differential Revision: D75597542
f65647d
to
8c285ff
Compare
Summary: Changelog: [internal] This defines a new bridging method to convert ShadowNode::Shared from and to JS. This has some benefits over the existing `shadowNodeFromValue` and `valueFromShadowNode` functions: 1. It's more convenient, as we can just use `ShadowNode::Shared` in classes implementing the codegen, and the runtime will do the conversion automatically. 2. It's safer, as it checks for nullability and throws JS exceptions except of having segmentation faults down the line. Differential Revision: D75597542
8c285ff
to
4870990
Compare
This pull request was exported from Phabricator. Differential Revision: D75597542 |
Summary: Changelog: [internal] This defines a new bridging method to convert ShadowNode::Shared from and to JS. This has some benefits over the existing `shadowNodeFromValue` and `valueFromShadowNode` functions: 1. It's more convenient, as we can just use `ShadowNode::Shared` in classes implementing the codegen, and the runtime will do the conversion automatically. 2. It's safer, as it checks for nullability and throws JS exceptions except of having segmentation faults down the line. Reviewed By: javache Differential Revision: D75597542
4870990
to
fcfbd58
Compare
Summary: Changelog: [internal] This defines a new bridging method to convert ShadowNode::Shared from and to JS. This has some benefits over the existing `shadowNodeFromValue` and `valueFromShadowNode` functions: 1. It's more convenient, as we can just use `ShadowNode::Shared` in classes implementing the codegen, and the runtime will do the conversion automatically. 2. It's safer, as it checks for nullability and throws JS exceptions except of having segmentation faults down the line. Reviewed By: javache Differential Revision: D75597542
Summary: Changelog: [internal] This defines a new bridging method to convert ShadowNode::Shared from and to JS. This has some benefits over the existing `shadowNodeFromValue` and `valueFromShadowNode` functions: 1. It's more convenient, as we can just use `ShadowNode::Shared` in classes implementing the codegen, and the runtime will do the conversion automatically. 2. It's safer, as it checks for nullability and throws JS exceptions except of having segmentation faults down the line. Reviewed By: javache Differential Revision: D75597542
This pull request was exported from Phabricator. Differential Revision: D75597542 |
Summary: Pull Request resolved: facebook#51675 Changelog: [internal] This defines a new bridging method to convert ShadowNode::Shared from and to JS. This has some benefits over the existing `shadowNodeFromValue` and `valueFromShadowNode` functions: 1. It's more convenient, as we can just use `ShadowNode::Shared` in classes implementing the codegen, and the runtime will do the conversion automatically. 2. It's safer, as it checks for nullability and throws JS exceptions except of having segmentation faults down the line. Reviewed By: javache Differential Revision: D75597542
fcfbd58
to
41c1039
Compare
Summary: Changelog: [internal] This defines a new bridging method to convert ShadowNode::Shared from and to JS. This has some benefits over the existing `shadowNodeFromValue` and `valueFromShadowNode` functions: 1. It's more convenient, as we can just use `ShadowNode::Shared` in classes implementing the codegen, and the runtime will do the conversion automatically. 2. It's safer, as it checks for nullability and throws JS exceptions except of having segmentation faults down the line. Reviewed By: javache Differential Revision: D75597542
aa1b9dc
to
3d84f81
Compare
This pull request was exported from Phabricator. Differential Revision: D75597542 |
1 similar comment
This pull request was exported from Phabricator. Differential Revision: D75597542 |
Summary: Pull Request resolved: facebook#51675 Changelog: [internal] This defines a new bridging method to convert ShadowNode::Shared from and to JS. This has some benefits over the existing `shadowNodeFromValue` and `valueFromShadowNode` functions: 1. It's more convenient, as we can just use `ShadowNode::Shared` in classes implementing the codegen, and the runtime will do the conversion automatically. 2. It's safer, as it checks for nullability and throws JS exceptions except of having segmentation faults down the line. Reviewed By: javache Differential Revision: D75597542
3d84f81
to
b3f79e9
Compare
Summary: Changelog: [internal] This defines a new bridging method to convert ShadowNode::Shared from and to JS. This has some benefits over the existing `shadowNodeFromValue` and `valueFromShadowNode` functions: 1. It's more convenient, as we can just use `ShadowNode::Shared` in classes implementing the codegen, and the runtime will do the conversion automatically. 2. It's safer, as it checks for nullability and throws JS exceptions except of having segmentation faults down the line. Reviewed By: javache Differential Revision: D75597542
b3f79e9
to
6764e21
Compare
Summary: Changelog: [internal] This defines a new bridging method to convert ShadowNode::Shared from and to JS. This has some benefits over the existing `shadowNodeFromValue` and `valueFromShadowNode` functions: 1. It's more convenient, as we can just use `ShadowNode::Shared` in classes implementing the codegen, and the runtime will do the conversion automatically. 2. It's safer, as it checks for nullability and throws JS exceptions except of having segmentation faults down the line. Reviewed By: javache Differential Revision: D75597542
Summary: Changelog: [internal] This defines a new bridging method to convert ShadowNode::Shared from and to JS. This has some benefits over the existing `shadowNodeFromValue` and `valueFromShadowNode` functions: 1. It's more convenient, as we can just use `ShadowNode::Shared` in classes implementing the codegen, and the runtime will do the conversion automatically. 2. It's safer, as it checks for nullability and throws JS exceptions except of having segmentation faults down the line. Reviewed By: javache Differential Revision: D75597542
Summary: Pull Request resolved: facebook#51675 Changelog: [internal] This defines a new bridging method to convert ShadowNode::Shared from and to JS. This has some benefits over the existing `shadowNodeFromValue` and `valueFromShadowNode` functions: 1. It's more convenient, as we can just use `ShadowNode::Shared` in classes implementing the codegen, and the runtime will do the conversion automatically. 2. It's safer, as it checks for nullability and throws JS exceptions except of having segmentation faults down the line. Reviewed By: javache Differential Revision: D75597542
This pull request was exported from Phabricator. Differential Revision: D75597542 |
6764e21
to
4b562fc
Compare
This pull request has been merged in 9c21489. |
This pull request was successfully merged by @rubennorte in 9c21489 When will my fix make it into a release? | How to file a pick request? |
Summary:
Changelog: [internal]
This defines a new bridging method to convert ShadowNode::Shared from and to JS. This has some benefits over the existing
shadowNodeFromValue
andvalueFromShadowNode
functions:ShadowNode::Shared
in classes implementing the codegen, and the runtime will do the conversion automatically.Differential Revision: D75597542