It is not even close to the same. And I think the point is that hot patching.
If you could save a JavaScript file and it would reload just those functions in your running app with out changing state, then that would be closer.
As far as I am aware it is near impossible in every language that isn't lisp