Skip to content

Conversation

@grgustaf
Copy link
Collaborator

@grgustaf grgustaf commented Apr 6, 2018

JerryScript-DCO-1.0-Signed-off-by: Geoff Gustafson [email protected]

JerryScript-DCO-1.0-Signed-off-by: Geoff Gustafson [email protected]
*/
sendPaused(breakpoint: Breakpoint | undefined, backtrace: Array<Breakpoint>,
reason: 'exception' | 'debugCommand' | 'other') {
reason: 'exception' | 'debugCommand' | 'other', exception?: string) {
Copy link
Owner

Choose a reason for hiding this comment

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

I know it was here already but it's started to draw attention to itself now :)
Maybe create a type for the reason close to the place where the sendPaused delegate contract is declared to avoid this long local type here?

type PausedReason = 'exception' | 'debugCommand' | 'other';

and then here:

reason: PausedReason

Copy link
Collaborator Author

@grgustaf grgustaf Apr 10, 2018

Choose a reason for hiding this comment

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

This isn't really a delegate call but an API... the controller calls this. I'm assuming it's still a good idea.

JerryScript-DCO-1.0-Signed-off-by: Geoff Gustafson [email protected]
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