working
alert
val: "hello"
val2: "all good"
val3: "works" if true
compiles correctly to
alert({
val: "hello",
val2: "all good",
val3: true ? "works" : void 0
});
incorrect compilation
alert
val3: "works" if true
val: "hello"
val2: "all good"
compiles incorrectly to
alert(true ? {
val3: "works"
} : void 0, {
val: "hello",
val2: "all good"
});