mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-24 02:30:13 +00:00
Don't ignore synchronous errors when calling Node
This commit is contained in:
@@ -39,7 +39,11 @@ var server = http.createServer(function(req, res) {
|
||||
}
|
||||
};
|
||||
|
||||
func.apply(null, [callback].concat(bodyJson.args));
|
||||
try {
|
||||
func.apply(null, [callback].concat(bodyJson.args));
|
||||
} catch (synchronousException) {
|
||||
callback(synchronousException, null);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user