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

Rolling to V8 10.9.194.1 #1118

Merged
merged 1 commit into from
Nov 11, 2022
Merged

Rolling to V8 10.9.194.1 #1118

merged 1 commit into from
Nov 11, 2022

Conversation

denobot
Copy link
Contributor

@denobot denobot commented Nov 10, 2022

No description provided.

@denobot denobot changed the title Rolling to V8 10.8.168.17 Rolling to V8 10.9.194.1 Nov 10, 2022
#[inline(always)]
pub fn detach(&self) {
pub fn detach(&self, key: Local<Value>) -> Option<bool> {
Copy link
Contributor

Choose a reason for hiding this comment

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

This should probably be Option<Local<Value>>

Copy link
Member

Choose a reason for hiding this comment

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

Care to elaborate? Do you want to default to passing undefined is the passed value is None?

Copy link
Contributor

Choose a reason for hiding this comment

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

Although Rust's Option<Local> maps more closely to MaybeLocal, in the C++ API Local can be a null handle. The suggestion to replace the deprecated no-arguments Detach method is to call Detach with a null handle, so the Rust API should allow this as well.

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.

None yet

4 participants