Skip to content

exceptions during drawing processes are discarded #49

Open
@masuhar

Description

@masuhar

The exception handler in update.js:152

  • catches exceptions not only the ones raised in eval, but also the ones raised in the subsequent processes, such as graph drawing, but
  • only reports 'infinite loop' cases; i.e., silently discards other exceptions.

This makes it very difficult to spot bugs in the Kanon runtime. For example, an attempt to modify a visjs' graph mistakenly creates 'undefined' entry in a graph.edges, which causes an exception in the subsequent process. However, Kanon simply displays a graph before modifying the graph.

This should also be bad for exceptions in the user program.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions