Skip to content

Commit

Permalink
Changed prototype logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
arb committed Dec 23, 2015
1 parent 3af172b commit 269ff01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/index.js
Expand Up @@ -8,8 +8,7 @@ const Hoek = require('hoek');
// Declare internals

const internals = {
STATUS_CODES: {
__proto__: null,
STATUS_CODES: Object.setPrototypeOf({
'100': 'Continue',
'101': 'Switching Protocols',
'102': 'Processing',
Expand Down Expand Up @@ -67,9 +66,10 @@ const internals = {
'509': 'Bandwidth Limit Exceeded',
'510': 'Not Extended',
'511': 'Network Authentication Required'
}
}, null)
};


exports.wrap = function (error, statusCode, message) {

Hoek.assert(error instanceof Error, 'Cannot wrap non-Error object');
Expand Down

0 comments on commit 269ff01

Please sign in to comment.