File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change
1
+ let _enable_super_gross_mode_that_will_cause_bad_things = false ;
2
+
1
3
/**
2
4
* The global configuration object for RxJS, used to configure things
3
5
* like what Promise contructor should used to create Promises
@@ -17,5 +19,17 @@ export const config = {
17
19
* an unhandled error. DO NOT USE THIS FLAG UNLESS IT'S NEEDED TO BY TIME
18
20
* FOR MIGRATION REASONS.
19
21
*/
20
- useDeprecatedSynchronousErrorHandling : false ,
22
+ set useDeprecatedSynchronousErrorHandling ( value : boolean ) {
23
+ if ( value ) {
24
+ const error = new Error ( ) ;
25
+ console . warn ( 'DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n' + error . stack ) ;
26
+ } else if ( _enable_super_gross_mode_that_will_cause_bad_things ) {
27
+ console . log ( 'RxJS: Back to a better error behavior. Thank you. <3' ) ;
28
+ }
29
+ _enable_super_gross_mode_that_will_cause_bad_things = value ;
30
+ } ,
31
+
32
+ get useDeprecatedSynchronousErrorHandling ( ) {
33
+ return _enable_super_gross_mode_that_will_cause_bad_things ;
34
+ }
21
35
} ;
You can’t perform that action at this time.
0 commit comments