Annotation of parser3/tests/360.html, revision 1.3
1.1 moko 1: @main[]
2: $n(1)
3:
1.2 moko 4: code junctions ignore in expression flag, this it works:
1.1 moko 5: $x(^if(2){^n.int[]^n.int[]})
6: $x
7:
1.3 ! moko 8: this code works after #1211:
1.1 moko 9: ^try-catch{ $y(^test[]) }
10: $y
11:
1.2 moko 12: this code does not work in 3.4.4:
13: ^try-catch{ $z(^test-wrapper[]) }
14: $z
15:
1.3 ! moko 16: ^try-catch{ string and number: $s(^test-string[]) $s $s.CLASS_NAME}
! 17: string and object[]: $s[^test-object[]] $s.CLASS_NAME
! 18: string and object(): $n(^test-object[]) $n.CLASS_NAME
1.2 moko 19:
1.3 ! moko 20: #since 3.4.7 numbers are converted to strings in expression context
1.1 moko 21: @test[]
22: ^n.int[]^n.int[]
1.2 moko 23:
1.3 ! moko 24: #in 3.4.5-3.4.6 wrapper hided "in expression" flag, thus no exception
1.2 moko 25: @test-wrapper[]
26: ^test[]
27:
28: @test-string[]
1.3 ! moko 29: -^n.int[]
1.2 moko 30:
31: @test-object[]
1.3 ! moko 32: string value (even non-whitespace!) is ignored if object (^hash::create[]) is returned.
E-mail: