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

Two fixes to breakpoints and integration test #425

Merged
merged 3 commits into from
Mar 15, 2019
Merged

Conversation

arjunguha
Copy link
Member

Fixes #424

There were three issues:

  1. There was a type error in the generated code, where the runtime
    system would check for the current line number in
    $S.suspendRTS.linenum, but the generated code would set the line
    number in $__R.linenum. JavaScript would silently create that field
    without blowing up.

  2. Calling the onBreakpoint handler would not set the runtime's state
    to paused. (This is the error shown in Polyfilled Array.sort with callback fails when a breakpoint is added. #424). This is fixed and
    cleaned up a bit.

  3. Unrelated error: we were instrumenting all blocks to support
    breakpoints, but not the top-level. The logic is identical and
    factored into a helper function in suspendStep.ts.

Fixes #424

There were three issues:

1. There was a type error in the generated code, where the runtime
   system would check for the current line number in
   `$S.suspendRTS.linenum`, but the generated code would set the line
   number in `$__R.linenum`. JavaScript would silently create that field
   without blowing up.

2. Calling the `onBreakpoint` handler would not set the runtime's state
   to paused. (This is the error shown in #424). This is fixed and
   cleaned up a bit.

3. Unrelated error: we were instrumenting all blocks to support
   breakpoints, but not the top-level. The logic is identical and
   factored into a helper function in `suspendStep.ts`.
Securing Jenkins is a pain.
@arjunguha arjunguha merged commit 5870be2 into master Mar 15, 2019
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.

Polyfilled Array.sort with callback fails when a breakpoint is added.
1 participant