Skip to content

Commit a5f0be6

Browse files
committed
Fixed Error in FES prevents message from being shown
Prevented window.constructor and window.length from being overwritten in bindGlobal
1 parent f36587d commit a5f0be6

File tree

3 files changed

+1
-44
lines changed

3 files changed

+1
-44
lines changed

src/core/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class p5 {
137137
bindGlobal(p);
138138
}
139139

140-
const protectedProperties = ['constructor', 'length', 'print'];
140+
const protectedProperties = ['constructor', 'length'];
141141
// Attach its properties to the window
142142
for (const p in this) {
143143
if (this.hasOwnProperty(p)) {

test.html

Lines changed: 0 additions & 12 deletions
This file was deleted.

test2.html

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)