We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03561ec commit a4a606cCopy full SHA for a4a606c
src/configurable-parser.js
@@ -39,9 +39,12 @@ function restoreContext (changed) {
39
}
40
41
42
+var isSafari = typeof navigator !== 'undefined' && /Safari/.test(navigator.userAgent) && /Apple Computer/.test(navigator.vendor)
43
+var oldNode = typeof process !== 'undefined' && process.version.startsWith('v4.')
44
+
45
function needsCustomParser () {
46
return this.ignoreComments || this.allowSingleQuotedStrings ||
- this.mode === 'cjson' || this.mode === 'json5'
47
+ this.mode === 'cjson' || this.mode === 'json5' || isSafari || oldNode
48
49
50
function getReviver (options) {
0 commit comments