@@ -330,15 +330,15 @@ export function forEach(targetObj: any, fn: any, context?: any) {
330330 Object . keys ( targetObj ) . forEach ( ( key ) => fn . call ( context , targetObj [ key ] , key ) ) ;
331331}
332332
333- export function parseData ( schema : unknown , self : any ) : any {
333+ export function parseData ( schema : unknown , self : any , options : any ) : any {
334334 if ( isJSExpression ( schema ) ) {
335- return parseExpression ( schema , self ) ;
335+ return parseExpression ( schema , self , options . thisRequiredInJSE ) ;
336336 } else if ( isI18nData ( schema ) ) {
337337 return parseI18n ( schema , self ) ;
338338 } else if ( typeof schema === 'string' ) {
339339 return schema . trim ( ) ;
340340 } else if ( Array . isArray ( schema ) ) {
341- return schema . map ( ( item ) => parseData ( item , self ) ) ;
341+ return schema . map ( ( item ) => parseData ( item , self , options ) ) ;
342342 } else if ( typeof schema === 'function' ) {
343343 return schema . bind ( self ) ;
344344 } else if ( typeof schema === 'object' ) {
@@ -351,7 +351,7 @@ export function parseData(schema: unknown, self: any): any {
351351 if ( key . startsWith ( '__' ) ) {
352352 return ;
353353 }
354- res [ key ] = parseData ( val , self ) ;
354+ res [ key ] = parseData ( val , self , options ) ;
355355 } ) ;
356356 return res ;
357357 }
0 commit comments