DescriptionMake throw an expression
Throw e is now an expression rather than a statement. The language
spec says that throw without an expression (i.e. rethrowing the
current exception) is an expression as well. I have not implemented
this. It is rather difficult to determine at expression level whether
the keyword "throw" is followed by an expression or not. Thus,
throw without an expression is only allowed at statement level.
I think we should change the language spec to that effect.
Committed: https://code.google.com/p/dart/source/detail?r=12928
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #
Total comments: 1
Messages
Total messages: 3 (0 generated)
|