O'Reilly logo

Node Security by Dominic Barnes

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Considerations for Node.js

JavaScript has exceptions built into the language as an error-handling construct. When an exception is thrown, there needs to be some code to detect that error and handle it appropriately. However, if an exception remains uncaught, it will trigger a show-stopping error.

In the browser, an uncaught exception immediately halts any execution that takes place. This will not cause your web page to crash, but it has the potential to leave your application in an unstable place.

In Node.js, an uncaught exception will terminate the application thread. This is very different from other server-side programming languages like PHP, where a similar error only causes a single request to fail. Now, you must contend with your entire server ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required