projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Security update to Drupal 8.4.6
[yaffs-website]
/
node_modules
/
safe-json-parse
/
result.js
1
var Result = require('rust-result');
2
3
module.exports = SafeParseTuple
4
5
function SafeParseTuple(obj, reviver) {
6
var json
7
8
try {
9
json = JSON.parse(obj, reviver);
10
} catch (err) {
11
return Result.Err(err);
12
}
13
14
return Result.Ok(json);
15
}