File tree 1 file changed +3
-2
lines changed
packages/glimmer-templates/src/helpers
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -129,12 +129,13 @@ function sourceExpr(stack: any[],
129
129
isSourceSet : IsSourceSet , setSource : SetSource ,
130
130
abort : Abort
131
131
) : void {
132
+ let enforceSwitch = true ;
132
133
let type = number ( stack ) ;
133
134
if ( type & SourceExpression . dependency ) {
134
135
let numDeps = number ( stack ) ;
135
136
while ( numDeps -- > 0 ) {
136
137
let depIndex = number ( stack ) ;
137
- if ( ! isSourceSet ( depIndex ) ) abort ( ) ;
138
+ if ( ! isSourceSet ( depIndex ) ) enforceSwitch = abort ( ) ;
138
139
}
139
140
}
140
141
if ( type & SourceExpression . boolean ) {
@@ -150,7 +151,7 @@ function sourceExpr(stack: any[],
150
151
value = string ( stack ) ;
151
152
break ;
152
153
case FalsySwitchBehavior . error :
153
- e ( "string expected" ) ; // TODO: error message
154
+ if ( enforceSwitch ) e ( "string expected" ) ; // TODO: error message
154
155
break ;
155
156
case FalsySwitchBehavior . unset :
156
157
abort ( ) ;
You can’t perform that action at this time.
0 commit comments