processing / processing/p5.js-web-editor

Sets can not add elements

Open
#2,114 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Priority:Low
Dominant language
JavaScript
Stars
1.7k
Forks
1.7k
Avg merge
3d 4h
Merged PRs (30d)
8

Description

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.5.0

Web browser and version

Brave: 1.47.186 Chromium: 109.0.5414.119

Operating System

Windows 11 Version 21H2 (Build 22000.1455)

Steps to reproduce this
Steps:
  1. Create a set from an array
  2. or add a value
  3. print the set
Snippet:
function setup() {
  const a = new Set([10]);
  print(a);
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the provided Set snippet in the p5.js Web Editor using the reported browser and version, then inspect the editor path that handles JavaScript execution and output from print(). Done means creating a Set, adding a value, and printing it produce the expected visible result.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.