MZ Why isn't this working?

I have commented out everything except these lines of code and disabled all other plugins, and for some reason, the game freezes when showing a message. I cannot figure out why.

Code:
const ZETU_Window_Message_updateMessage = Window_Message.prototype.updateMessage;
Window_Message.prototype.updateMessage = function () {
    let updated = ZETU_Window_Message_updateMessage.apply(this, arguments);
}
Where did you get this code from? What is the let updated = part intended for? I think that breaks everything?

JavaScript:
const ZETU_Window_Message_updateMessage = Window_Message.prototype.updateMessage;
Window_Message.prototype.updateMessage = function () {
ZETU_Window_Message_updateMessage.apply(this, arguments);
}
I think that breaks everything?
by itself it does. the problem is that theyre doing nothing with it.

that function normally returns a value and its used by the text box's update function to know if it should keep a loop going. this function needs to return "updated" or else the update loop doesnt work and the game freezing mentioned happens. (or yknow... return their saved aliased function call. no idea what theyre trying to do here and if they have to make the "updated" variable at all)
I have commented out everything except these lines of code and disabled all other plugins, and for some reason, the game freezes when showing a message. I cannot figure out why.

Code:
const ZETU_Window_Message_updateMessage = Window_Message.prototype.updateMessage;
Window_Message.prototype.updateMessage = function () {
    let updated = ZETU_Window_Message_updateMessage.apply(this, arguments);
}
const ZETU_Window_Message_updateMessage = Window_Message.prototype.updateMessage;
Window_Message.prototype.updateMessage = function() {
// Add your code before calling the original function (if desired)

const result = ZETU_Window_Message_updateMessage.apply(this, arguments);

// Add your code after calling the original function (if desired)

return result; // Return the result
};


It should work like this
Invalid return value
Oh right, brain fart. I needed to return updated.

Original thread: https://forums.rpgmakerweb.com/threads/why-isnt-this-working.173392/