diff --git a/src/blocks/scratch3_procedures.js b/src/blocks/scratch3_procedures.js index 1f0cdf03..586c1462 100644 --- a/src/blocks/scratch3_procedures.js +++ b/src/blocks/scratch3_procedures.js @@ -75,8 +75,11 @@ class Scratch3ProcedureBlocks { // tw: is compiled? and is turbowarp? should return true // Yes, is compiled? is returning a technically incorrect value. // This results in the least astonishment for users when they click on "is compiled?" on its own. - if (`${args.VALUE}`.toLowerCase() === 'is compiled?' || `${args.VALUE}`.toLowerCase() === 'is turbowarp?') { - return true; + if (util.target.runtime.compilerOptions.enabled) { + const lowercaseValue = `${args.VALUE}`.toLowerCase(); + if (lowercaseValue === 'is compiled?' || lowercaseValue === 'is turbowarp?') { + return true; + } } // When the parameter is not found in the most recent procedure // call, the default is always 0.