File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -983,6 +983,8 @@ ASTCompiler.prototype = {
983
983
}
984
984
}
985
985
recursionFn ( intoId ) ;
986
+ } , function ( ) {
987
+ self . assign ( intoId , 'undefined' ) ;
986
988
} ) ;
987
989
} , ! ! create ) ;
988
990
break ;
Original file line number Diff line number Diff line change @@ -1745,6 +1745,10 @@ describe('parser', function() {
1745
1745
expect ( scope . $eval ( "0&&2" ) ) . toEqual ( 0 && 2 ) ;
1746
1746
expect ( scope . $eval ( "0||2" ) ) . toEqual ( 0 || 2 ) ;
1747
1747
expect ( scope . $eval ( "0||1&&2" ) ) . toEqual ( 0 || 1 && 2 ) ;
1748
+ expect ( scope . $eval ( "true&&a" ) ) . toEqual ( true && undefined ) ;
1749
+ expect ( scope . $eval ( "true&&a.b" ) ) . toEqual ( true && undefined ) ;
1750
+ expect ( scope . $eval ( "false||a" ) ) . toEqual ( false || undefined ) ;
1751
+ expect ( scope . $eval ( "false||a.b" ) ) . toEqual ( false || undefined ) ;
1748
1752
} ) ;
1749
1753
1750
1754
it ( 'should parse ternary' , function ( ) {
You can’t perform that action at this time.
0 commit comments