[BUG] Error during evaluation of conditional (ternary) operator
The script in the Illustrator produces an error during evaluation of a conditional expression that includes a nested conditional expression without parenthesis.
This breaks JavaScript optimization tools e.g. Google Closure Compiler.
Scenario:
alert(true ? true ? 1 : 2 : 3);
Expected:
Standard dialog with message: "1".
Actual:
Dialog with message "Error 25: Expected: :."
Workaround:
alert(true ? (true ? 1 : 2) : 3);
System info:
Illustrator Version: 23.0.1
OS: OS X
Version: 10.14
System Architecture: x64
3
votes
Alexander
shared this idea