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

Add v8::FunctionCallbackInfo::NewTarget bindings #898

Merged
merged 4 commits into from
Feb 11, 2022

Conversation

littledivy
Copy link
Member

No description provided.

@@ -215,6 +218,13 @@ impl<'s> FunctionCallbackArguments<'s> {
.unwrap()
}
}

/// For construct calls, this returns the "new.target" value.
Copy link
Member

Choose a reason for hiding this comment

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

What value does it return for non-construct calls?

Copy link
Member Author

@littledivy littledivy Feb 11, 2022

Choose a reason for hiding this comment

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

v8::undefined

tests/test_api.rs Outdated Show resolved Hide resolved
@piscisaureus
Copy link
Member

LGTM but I'd like the test to be slightly more rigorous.

tests/test_api.rs Outdated Show resolved Hide resolved
Copy link
Member

@piscisaureus piscisaureus left a comment

Choose a reason for hiding this comment

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

LGTM

@littledivy littledivy merged commit 41003d0 into denoland:main Feb 11, 2022
@littledivy littledivy deleted the cb_info_new_target branch February 11, 2022 15:21
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