File tree 4 files changed +18
-2
lines changed 4 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 1
- process . env . RHTL_DISABLE_ERROR_FILTERING = true
1
+ try {
2
+ process . env . RHTL_DISABLE_ERROR_FILTERING = true
3
+ } catch {
4
+ // falling back in the case that process.env.RHTL_DISABLE_ERROR_FILTERING cannot be accessed (e.g. browser environment)
5
+ console . warn (
6
+ 'Could not disable error filtering as process.env.RHTL_DISABLE_ERROR_FILTERING could not be accessed.'
7
+ )
8
+ }
Original file line number Diff line number Diff line change 1
- process . env . RHTL_SKIP_AUTO_CLEANUP = true
1
+ try {
2
+ process . env . RHTL_SKIP_AUTO_CLEANUP = true
3
+ } catch {
4
+ // falling back in the case that process.env.RHTL_SKIP_AUTO_CLEANUP cannot be accessed (e.g. browser environment)
5
+ console . warn (
6
+ 'Could not skip auto cleanup as process.env.RHTL_SKIP_AUTO_CLEANUP could not be accessed.'
7
+ )
8
+ }
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ function skipAutoCleanup() {
22
22
try {
23
23
return ! ! process . env . RHTL_SKIP_AUTO_CLEANUP
24
24
} catch {
25
+ // falling back in the case that process.env.RHTL_SKIP_AUTO_CLEANUP cannot be accessed (e.g. browser environment)
25
26
return false
26
27
}
27
28
}
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ function errorFilteringDisabled() {
24
24
try {
25
25
return ! ! process . env . RHTL_DISABLE_ERROR_FILTERING
26
26
} catch {
27
+ // falling back in the case that process.env.RHTL_DISABLE_ERROR_FILTERING cannot be accessed (e.g. browser environment)
27
28
return false
28
29
}
29
30
}
You can’t perform that action at this time.
0 commit comments