Skip to content

chore: Introduce JSValue::new_string_inner to simplify code #16

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

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

Hywan
Copy link
Contributor

@Hywan Hywan commented Oct 5, 2023

This patch introduces JSValue::new_string_inner to construct a string with a context as a *const OpaqueJSContext instead of a &JSContext.

This new method helps to simplify another part of the code where a JS string was built manually.

This patch introduces `JSValue::new_string_inner` to construct a string
with a context as a `*const OpaqueJSContext` instead of a `&JSContext`.

This new method helps to simplify another part of the code where a
JS string was built manually.
@waywardmonkeys waywardmonkeys merged commit 6cea1ef into endoli:main Oct 5, 2023
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