Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fixed Error in FES prevents message from being shown
Prevented window.constructor and window.length from being overwritten in bindGlobal
  • Loading branch information
HughJacks committed Apr 21, 2025
commit a5f0be615f76e34a0bd7f6aa715b74e7d3710b3f
2 changes: 1 addition & 1 deletion src/core/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class p5 {
bindGlobal(p);
}

const protectedProperties = ['constructor', 'length', 'print'];
const protectedProperties = ['constructor', 'length'];
// Attach its properties to the window
for (const p in this) {
if (this.hasOwnProperty(p)) {
Expand Down
12 changes: 0 additions & 12 deletions test.html

This file was deleted.

31 changes: 0 additions & 31 deletions test2.html

This file was deleted.