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

FES gives misleading error message when NaN passed to function #6463

Closed
1 of 17 tasks
dhowe opened this issue Oct 9, 2023 · 0 comments · Fixed by #6464
Closed
1 of 17 tasks

FES gives misleading error message when NaN passed to function #6463

dhowe opened this issue Oct 9, 2023 · 0 comments · Fixed by #6464

Comments

@dhowe
Copy link
Contributor

dhowe commented Oct 9, 2023

Most appropriate sub-area of p5.js?

  • Accessibility
  • Color
  • Core/Environment/Rendering
  • Data
  • DOM
  • Events
  • Image
  • IO
  • Math
  • Typography
  • Utilities
  • WebGL
  • Build Process
  • Unit Testing
  • Internalization
  • Friendly Errors
  • Other (specify if possible)

p5.js version

1.7.0

Web browser and version

Firefox 118.0.1

Operating System

OS X

Steps to reproduce this

Steps:

  1. Run code similar to below, see error message:

🌸 p5.js says: [sketch.js, line 9] line() was expecting Number for the first parameter, received number instead. (http://p5js.org/reference/#/p5/line)

function setup() {
  createCanvas(400, 400);
  let i = 0, j = 0;
  point(i/j,10);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant