File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change
1
+ Fix bug where 1st gen functions eventually fail with stack too deep (#1540 )
2
+ Make simple CORS options static for improved debugability (#1536 )
Original file line number Diff line number Diff line change @@ -367,6 +367,7 @@ export function makeCloudFunction<EventData>({
367
367
service,
368
368
triggerResource,
369
369
} : MakeCloudFunctionArgs < EventData > ) : CloudFunction < EventData > {
370
+ handler = withInit ( handler ) ;
370
371
const cloudFunction : any = ( data : any , context : any ) => {
371
372
if ( legacyEventType && context . eventType === legacyEventType ) {
372
373
/*
@@ -404,7 +405,6 @@ export function makeCloudFunction<EventData>({
404
405
context . params = context . params || _makeParams ( context , triggerResource ) ;
405
406
}
406
407
407
- handler = withInit ( handler ) ;
408
408
let promise ;
409
409
if ( labels && labels [ "deployment-scheduled" ] ) {
410
410
// Scheduled function do not have meaningful data, so exclude it
You can’t perform that action at this time.
0 commit comments