Skip to content

Print dialog appears when calling print on undefined variables #614

Closed
@aferriss

Description

@aferriss

Nature of issue?

  • Found a bug
  • Existing feature enhancement
  • New feature request

Details about the bug:

Calling print(x) with an undefined variable brings up the browser print dialog. I noticed that there was a similar issue over on #474 but that seemed to be more focused on calling print outside of setup or draw. In this case, it just happens if a variable becomes undefined.

One of my students stumbled across this by accidentally providing the dist function without enough parameters let x = dist(10, 35), which ended up returning undefined.

  • Web browser and version: Chrome/Firefox/Safari
  • Operating System: MacOSX 10.12.6
  • Steps to reproduce this: Alpha editor link

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