summaryrefslogtreecommitdiff
path: root/bin/wiki/ImportarDesdeURL/node_modules/whoops/lib/helpers.js
diff options
context:
space:
mode:
Diffstat (limited to 'bin/wiki/ImportarDesdeURL/node_modules/whoops/lib/helpers.js')
-rw-r--r--bin/wiki/ImportarDesdeURL/node_modules/whoops/lib/helpers.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/bin/wiki/ImportarDesdeURL/node_modules/whoops/lib/helpers.js b/bin/wiki/ImportarDesdeURL/node_modules/whoops/lib/helpers.js
new file mode 100644
index 00000000..c3ca43cb
--- /dev/null
+++ b/bin/wiki/ImportarDesdeURL/node_modules/whoops/lib/helpers.js
@@ -0,0 +1,18 @@
+'use strict'
+
+module.exports = {
+ isFunction: obj => typeof obj === 'function',
+ isString: obj => typeof obj === 'string',
+ composeErrorMessage: (code, description) => `${code}, ${description}`,
+ inherits: (ctor, superCtor) => {
+ ctor.super_ = superCtor
+ ctor.prototype = Object.create(superCtor.prototype, {
+ constructor: {
+ value: ctor,
+ enumerable: false,
+ writable: true,
+ configurable: true
+ }
+ })
+ }
+}