diff --git a/src/scoring/processor/expressions/processor.js b/src/scoring/processor/expressions/processor.js index a427011f..a00a60c7 100644 --- a/src/scoring/processor/expressions/processor.js +++ b/src/scoring/processor/expressions/processor.js @@ -101,7 +101,7 @@ expressionProcessor.types = { * @throws {TypeError} when a parameter isn't valid */ expressionProcessor.register = function register(name, type, processor) { - if (!this.types || !this.types.includes(type)) { + if (!this.types[type]) { return errorHandler.throw('scoring', new TypeError(type + ' is not a valid expression type')); } if (_.isEmpty(name)) {