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

Use the error HR for the exception code for debug attach/detech fatal error #1509

Merged
merged 1 commit into from Aug 30, 2016

Conversation

curtisman
Copy link
Contributor

No description provided.

@curtisman
Copy link
Contributor Author

@Yongqu @agarwal-sandeep Review please.

{
Debugger_AttachDetach_fatal_error(); // Inconsistent state, we can't continue from here
Debugger_AttachDetach_fatal_error(hr); // Inconsistent state, we can't continue from here
return JsErrorFatal;
Copy link
Collaborator

Choose a reason for hiding this comment

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

return JsErrorFatal; [](start = 16, length = 20)

We won't reach here ever, can be simplified as Debugger_AttachDetach_fatal_error(scriptContext->OnDebuggerDetached())?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, Debugger_AttachDetach_fatal_error doesn't check hr, and it can be in one line.
I'd rather save the sorry by returning....

@agarwal-sandeep
Copy link
Collaborator

Otherwise LGTM

@chakrabot chakrabot merged commit ef065f4 into chakra-core:master Aug 30, 2016
chakrabot pushed a commit that referenced this pull request Aug 30, 2016
…debug attach/detech fatal error

Merge pull request #1509 from curtisman:hr
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