@@ -13,10 +13,14 @@ class Scope {
1313 }
1414
1515 getParam ( index ) {
16- const fieldBlock = this . block . params [ index ] ;
17- const newScope = new Entry . Scope ( fieldBlock , this . executor ) ;
18- const result = newScope . run ( this . entity , true ) ;
19- return result ;
16+ const param = this . block . params [ index ] ;
17+ if ( param instanceof Entry . Block ) {
18+ const newScope = new Entry . Scope ( param , this . executor ) ;
19+ const result = newScope . run ( this . entity , true ) ;
20+ return result ;
21+ } else {
22+ return this . filterReservedKeywords ( param ) ;
23+ }
2024 }
2125
2226 // 클래스 레벨에서 한 번만 생성
@@ -27,11 +31,10 @@ class Scope {
2731 }
2832
2933 getParams ( ) {
30- const that = this ;
3134 return this . block . params . map ( ( param ) => {
3235 if ( param instanceof Entry . Block ) {
3336 const fieldBlock = param ;
34- const newScope = new Entry . Scope ( fieldBlock , that . executor ) ;
37+ const newScope = new Entry . Scope ( fieldBlock , this . executor ) ;
3538 return newScope . run ( this . entity , true ) ;
3639 } else {
3740 return this . filterReservedKeywords ( param ) ;
@@ -185,7 +188,6 @@ class Scope {
185188 }
186189 const values = this . getParams ( ) ;
187190 const isPromise = values . some ( ( value ) => value instanceof Promise ) ;
188- // const schema = this.block.getSchema();
189191 if ( ! schema . func ) {
190192 return ;
191193 }
0 commit comments