oberr is just a function

pull/223/head
Tim Robinson 2015-10-01 10:42:51 +00:00
rodzic 8ee3e4cad1
commit 4054d149b2
1 zmienionych plików z 1 dodań i 1 usunięć

2
node_modules/c9/oberr.js wygenerowano vendored
Wyświetl plik

@ -4,7 +4,7 @@ define(function(require, exports, module) {
* Turns a JS Error into a proper object that can be stringified
* https://github.com/timjrobinson/oberr for more information
**/
exports.oberr = function(err) {
return function oberr(err) {
var ob = {};
Object.getOwnPropertyNames(err).forEach(function(key) {
ob[key] = err[key];