Annotation of parser3/tests/360.html, revision 1.2
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.2 ! moko 8: this code will work if OPTIMIZE_CALL is undefined after OP_PREPARE_TO_EXPRESSION removed (#1104):
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:
! 16: string and value: $s(^test-string[]) $s $s.CLASS_NAME
! 17: string and object: $s[^test-object[]] $s.CLASS_NAME
! 18:
! 19: #test is in expression + CO_WITHOUT_WCONTEXT is on by default, thus exception
1.1 moko 20: @test[]
21: ^n.int[]^n.int[]
1.2 ! moko 22:
! 23: #wrapper hides in expression flag, thus no more exception after OP_PREPARE_TO_EXPRESSION removed
! 24: @test-wrapper[]
! 25: ^test[]
! 26:
! 27: @test-string[]
! 28: string value (even non-whitespace!) is ignored if value (^n.int[]) is returned.
! 29:
! 30: @test-object[]
! 31: same thing in string context if object (^hash::create[]) is returned.
E-mail: