Skip to content

Commit f88689e

Browse files
committed
Disable FES function decoration when FES is disabled
1 parent 795954a commit f88689e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/core/friendly_errors/param_validator.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,10 @@ function validateParams(p5, fn, lifecycles) {
573573
lifecycles.presetup = function(){
574574
loadP5Constructors();
575575

576-
if(p5.disableParameterValidator !== true){
576+
if(
577+
p5.disableParameterValidator !== true &&
578+
p5.disableFriendlyErrors !== true
579+
){
577580
const excludes = ['validate'];
578581
for(const f in this){
579582
if(!excludes.includes(f) && !f.startsWith('_') && typeof this[f] === 'function'){

0 commit comments

Comments
 (0)