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

feat: v8::Inspector::exception_thrown, v8::Inspector::create_stack_trace #1149

Merged
merged 1 commit into from
Dec 7, 2022

Conversation

bartlomieju
Copy link
Member

Revival of #717

Closes #715

bartlomieju added a commit to denoland/deno that referenced this pull request Dec 6, 2022
…#16943)

Currently runtime exception are only displayed at the program end in
terminal, which makes it only a partial fix, as a full fix requires
denoland/rusty_v8#1149 which adds new bindings 
to the inspector that allows to notify it about thrown exceptions.
This will be handled in a follow up commit.
url: StringView,
line_number: u32,
column_number: u32,
stack_trace: UniquePtr<V8StackTrace>,
Copy link
Member

Choose a reason for hiding this comment

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

Is this argument optional?
If it is required, the type should be UniqueRef.

Copy link
Member Author

Choose a reason for hiding this comment

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

pub fn create_stack_trace(
&mut self,
stack_trace: Local<StackTrace>,
) -> UniquePtr<V8StackTrace> {
Copy link
Member

Choose a reason for hiding this comment

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

Does create_stack_trace() ever return nullptr?
If not, the return type should be UniqueRef.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it does, we discussed this in #717 (comment)

@bartlomieju bartlomieju merged commit 9fc29f4 into denoland:main Dec 7, 2022
@bartlomieju bartlomieju deleted the inspector_exceptionThrown branch December 7, 2022 13:43
aapoalas pushed a commit to aapoalas/rusty_v8 that referenced this pull request Dec 22, 2022
…ace (denoland#1149)

Adds APIs required to notify inspector about exceptions raised
by the runtime.
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.

Add V8Inspector::exceptionThrown binding
2 participants