Skip to content

Using DOM.js library kills console.log #3386

Open
@jht9629-nyu

Description

@jht9629-nyu

p5.js version

1.11.1

What is your operating system?

Mac OS

Web browser and version

133.0.6943.127 (Official Build) (arm64)

Actual Behavior

  1. open https://editor.p5js.org/jht9629-nyu/sketches/VY-KQxJkA
  2. run
  3. error appears in console:
  4. "RangeError: Maximum call stack size exceeded"

Expected Behavior

  1. comment out DOM.js include in index.html
  2. run script and console now shows expected messages:
pre setup 
in setup 
in draw 

Steps to reproduce

Steps:

  1. open https://editor.p5js.org/jht9629-nyu/sketches/VY-KQxJkA
  2. run
  3. error appears in console:
  4. "RangeError: Maximum call stack size exceeded"

Snippet:

Just the include of lenincompres/DOM.js causes simple console.log fails, eg:

function setup() {
  console.log('in setup');
}

DOM.js is a library by lenincompres included in the index.html
<script src="https://cdn.jsdelivr.net/gh/lenincompres/DOM.js@latest/DOM.js"></script>
Issue is also logged on his repo for the library:
lenincompres/DOM.js - console.log failure issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions