joyent/node — pull request #2787 by AndreasMadsen (2012-02-19 20:26:44+00:00)
Title: setuid and setgid should throw when an argument is used

`process.setuid` and `process.setgid` test if no arguments with the `asset()` function. This patch change the behaviour to use v8 `ThrowException`.

The issue was that `try catch` did not work.