File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -289,11 +289,12 @@ export function createDeprecationProxy(instance) {
289289 const originalMethod = target [ prop ] ;
290290
291291 if ( prop === 'constructor' ) {
292- return target . constructor ;
292+ return Reflect . get ( target , prop , receiver ) ;
293293 }
294294
295295 if ( target && target . constructor && target . constructor . name === 'FirestoreTimestamp' ) {
296296 deprecationConsoleWarning ( 'firestore' , prop , 'FirestoreTimestamp' , false ) ;
297+ return Reflect . get ( target , prop , receiver ) ;
297298 }
298299
299300 if ( target && target . name === 'firebaseModuleWithApp' ) {
@@ -308,7 +309,10 @@ export function createDeprecationProxy(instance) {
308309 ) {
309310 deprecationConsoleWarning ( 'firestore' , prop , 'statics' , false ) ;
310311 }
311- return target [ prop ] ;
312+ if ( prop !== 'setLogLevel' ) {
313+ // we want to capture setLogLevel function call which we do below
314+ return Reflect . get ( target , prop , receiver ) ;
315+ }
312316 }
313317
314318 if ( typeof originalMethod === 'function' ) {
You can’t perform that action at this time.
0 commit comments