Closed AD7six closed 13 years ago
I'm going to hazard a guess and say that 0.6 doesn't crash because of the last three lines in nowServerLib of 0.6:
process.on('uncaughtException', function (err) {
nowUtil.error(err);
});
Try 0fdd05cfe181ba127237d36ce93b743458686e1a?
Try 0fdd05c?
When you tested @steveWang on 0fdd05c did it work?
Yes, yes it did. Why, are you experiencing otherwise?
This should be fixed. Since 0fdd05c and also https://github.com/Flotype/now/commit/45a8c074251ab0ceca5a5a49bb49219bd82acd14
The behavior between now 0.6 and now 0.7 is quite different if a call is made to a nonexistent method.
In the below console output the only relevant difference is the call to
nowjs.doesntexist();
- simulating an attempt to call a now function defined on the client, which has been called on the server, before the client has sent the method definition.Compare 0.6
(note the server instance is still running)
with 0.7
(note the server is dead)