summaryrefslogtreecommitdiff
path: root/node_modules/json-parse-helpfulerror/index.js~
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/json-parse-helpfulerror/index.js~')
-rw-r--r--node_modules/json-parse-helpfulerror/index.js~20
1 files changed, 0 insertions, 20 deletions
diff --git a/node_modules/json-parse-helpfulerror/index.js~ b/node_modules/json-parse-helpfulerror/index.js~
deleted file mode 100644
index 6e11c92..0000000
--- a/node_modules/json-parse-helpfulerror/index.js~
+++ /dev/null
@@ -1,20 +0,0 @@
-'use strict';
-
-var jju = require('jju');
-
-function parse(text, reviver) {
- try {
- return JSON.parse(text, reviver);
- } catch(err) {
- // we expect this throw with a more informative message
- jju.parse(text, {
- mode: 'json',
- reviver: reviver
- });
-
- // if it didn't throw, re-throw the original error
- throw err;
- }
-}
-
-module.exports = parse;