blob: ce191651f7bacd315b45250e55ac64f361bbf5e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
const BUGNUMBER = 1405943;
const summary = "Implement pipeline operator (parse error)";
print(BUGNUMBER + ": " + summary);
if (hasPipeline()) {
// Invalid Token
assertThrowsInstanceOf(() => Function("2 | > parseInt"), SyntaxError);
assertThrowsInstanceOf(() => Function("2 ||> parseInt"), SyntaxError);
assertThrowsInstanceOf(() => Function("2 |>> parseInt"), SyntaxError);
assertThrowsInstanceOf(() => Function("2 <| parseInt"), SyntaxError);
// Invalid Syntax
assertThrowsInstanceOf(() => Function("2 |>"), SyntaxError);
assertThrowsInstanceOf(() => Function("|> parseInt"), SyntaxError);
}
if (typeof reportCompare === "function")
reportCompare(0, 0);
|