diff --git a/core/field_textinput.js b/core/field_textinput.js index 4bd367f37..bd544f08c 100644 --- a/core/field_textinput.js +++ b/core/field_textinput.js @@ -531,8 +531,11 @@ Blockly.FieldTextInput.prototype.resizeEditor_ = function() { * @deprecated */ Blockly.FieldTextInput.numberValidator = function(text) { - console.warn('Blockly.FieldTextInput.numberValidator is deprecated. ' + - 'Use Blockly.FieldNumber instead.'); + Blockly.utils.deprecation.warn( + 'FieldTextInput.numberValidator', + 'May 2019', + 'December 2020', + 'Blockly.FieldNumber'); if (text === null) { return null; }